diff options
| author | Federico Angelilli <code@fedang.net> | 2025-08-22 23:17:40 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2025-08-22 23:17:40 +0200 |
| commit | bed3cf6b79e52f3ac9152c83e389dd0a11b9fb7f (patch) | |
| tree | 3d269a2bd4b07742610ecfef8d03a05c6b0add5d /test | |
| parent | 310dcca190c13912800c82bcf7cbdbcfa81b49a8 (diff) | |
any_log v0.4.0trunk
Signed-off-by: Federico Angelilli <code@fedang.net>
Diffstat (limited to 'test')
| -rw-r--r-- | test/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,7 +20,7 @@ void print_backtrace(FILE *stream) backtrace_symbols_fd(buffer, nptrs, fileno(stream)); } -#define ANY_LOG_PANIC_AFTER(stream, file, line, context, module, func) \ +#define ANY_LOG_PANIC_AFTER(stream, file, line, module, func) \ do { \ print_backtrace(stream); \ fprintf(stream, "%spanic was invoked from%s %s:%d (module %s%s%s)\n", \ @@ -40,7 +40,7 @@ void print_backtrace(FILE *stream) // Print in a JSON like way -#define ANY_LOG_VALUE_BEFORE(stream, level, context, module, func, message) \ +#define ANY_LOG_VALUE_BEFORE(stream, level, module, func, message) \ fprintf(stream, "{\"module\": \"%s\", \"function\": \"%s\", \"level\": \"%s\", \"message\": \"%s\", ", \ module, func, any_log_level_strings[level], message) @@ -75,7 +75,7 @@ void print_backtrace(FILE *stream) fprintf(stream, "\""); \ } while (false) -#define ANY_LOG_VALUE_AFTER(stream, level, context, module, func, message) \ +#define ANY_LOG_VALUE_AFTER(stream, level, module, func, message) \ fprintf(stream, "}\n") #include "any_log.h" |
