| 359 | } |
| 360 | |
| 361 | static void mi_vfprintf_thread(mi_output_fun* out, void* arg, const char* prefix, const char* fmt, va_list args) { |
| 362 | if (prefix != NULL && strlen(prefix) <= 32 && !_mi_is_main_thread()) { |
| 363 | char tprefix[64]; |
| 364 | snprintf(tprefix, sizeof(tprefix), "%sthread 0x%llx: ", prefix, (unsigned long long)_mi_thread_id()); |
| 365 | mi_vfprintf(out, arg, tprefix, fmt, args); |
| 366 | } |
| 367 | else { |
| 368 | mi_vfprintf(out, arg, prefix, fmt, args); |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | void _mi_trace_message(const char* fmt, ...) { |
| 373 | if (mi_option_get(mi_option_verbose) <= 1) return; // only with verbose level 2 or higher |
no test coverage detected