We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b653dc6 commit 717c255Copy full SHA for 717c255
src/midi/midi_mt32.cpp
@@ -527,11 +527,17 @@ static mt32emu_report_handler_i get_report_handler_interface()
527
}
528
529
static void printDebug([[maybe_unused]] void* instance_data,
530
- const char* fmt, va_list list)
+ [[maybe_unused]] const char* fmt,
531
+ [[maybe_unused]] va_list list)
532
{
- char msg[1024];
533
- safe_sprintf(msg, fmt, list);
534
- LOG_DEBUG("MT32: %s", msg);
+#if !defined(NDEBUG)
+ // Skip processing MT-32 debug output in release builds
535
+ // because it can be bursty
536
+ char msg[1024] = "MT32: ";
537
+ assert(fmt);
538
+ safe_strcat(msg, fmt);
539
+ LOG_DEBUG(msg, list);
540
+#endif
541
542
543
static void onErrorControlROM(void*)
0 commit comments