From df2b0174722b6c048d75efe856a7abd7c68a9a49 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 12 Jun 2022 19:46:01 +0200 Subject: [PATCH] debug: Show debug category together with debug level --- src/libdebug/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libdebug/debug.c b/src/libdebug/debug.c index c00848a..3dd02dd 100755 --- a/src/libdebug/debug.c +++ b/src/libdebug/debug.c @@ -189,7 +189,7 @@ void _printdebug(const char *file, const char __attribute__((unused)) *function, printf("%04d-%02d-%02d %02d:%02d:%02d.%03d ", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, (int)(tv.tv_usec / 10000.0)); } - printf("%s%s:%4d %s: %s\033[0;39m", debug_cat[cat].color, file, line, debug_level[level], buffer); + printf("%s%s %4d %s-%s: %s\033[0;39m", debug_cat[cat].color, file, line, debug_cat[cat].name, debug_level[level], buffer); if (debug_limit_scroll) printf("\0337\033[%d;%dr\0338", 1, h); if (print_console_text)