debug: Add debug macro that doesn't print the context name

This is useful for logging a continuation on the same line.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 6 years ago
parent d6d5628537
commit ad673ed56b
  1. 7
      src/vrend_debug.h

@ -86,9 +86,16 @@ virgl_debug_callback_type vrend_set_debug_callback(virgl_debug_callback_type cb)
X; \ X; \
} while (0) } while (0)
#define VREND_DEBUG_NOCTX(flag, ctx, ...) \
if (vrend_debug(ctx, flag)) \
do { \
vrend_printf(__VA_ARGS__); \
} while (0)
#else #else
#define VREND_DEBUG(flag, ctx, fmt, ...) #define VREND_DEBUG(flag, ctx, fmt, ...)
#define VREND_DEBUG_EXT(flag, ctx, X) #define VREND_DEBUG_EXT(flag, ctx, X)
#define VREND_DEBUG_NOCTX(flag, ctx, ...)
#endif #endif
#endif #endif

Loading…
Cancel
Save