This changes microblaze.c to use the standard logging macro. As a
side effect, logs will now go to gdb_stdlog. This is part of PR gdb/7233.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=7233
\f
static unsigned int microblaze_debug_flag = 0;
-static void ATTRIBUTE_PRINTF (1, 2)
-microblaze_debug (const char *fmt, ...)
-{
- if (microblaze_debug_flag)
- {
- va_list args;
+#define microblaze_debug(fmt, ...) \
+ debug_prefixed_printf_cond_nofunc (microblaze_debug_flag, "MICROBLAZE", \
+ fmt, ## __VA_ARGS__)
- va_start (args, fmt);
- printf_unfiltered ("MICROBLAZE: ");
- vprintf_unfiltered (fmt, args);
- va_end (args);
- }
-}
\f
/* Return the name of register REGNUM. */