diff options
author | David Robillard <d@drobilla.net> | 2021-03-08 23:25:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-09 01:43:52 -0500 |
commit | 7b954f5667e82de1b64984a9aeb26b8ebb5cab81 (patch) | |
tree | 5668f80ce2dc7a52cf66bbe2f4e4429b18f09e08 /src/world.c | |
parent | c579186c5dd4e11bffddd353cef8978a66ef9c10 (diff) | |
download | serd-7b954f5667e82de1b64984a9aeb26b8ebb5cab81.tar.gz serd-7b954f5667e82de1b64984a9aeb26b8ebb5cab81.tar.bz2 serd-7b954f5667e82de1b64984a9aeb26b8ebb5cab81.zip |
WIP: Validationserd1-meson
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index a6e32dc6..1ea688cb 100644 --- a/src/world.c +++ b/src/world.c @@ -85,7 +85,7 @@ serd_ansi_reset(FILE* stream) #endif } -static const char* const log_level_strings[] = {"emergengy", +static const char* const log_level_strings[] = {"emergency", "alert", "critical", "error", @@ -159,6 +159,14 @@ serd_world_vlogf(const SerdWorld* world, // Using a copy isn't necessary here, but it avoids a clang-tidy bug vfprintf(stderr, fmt, ap); + + // Print clang-tidy-style check suffix + const char* const check = serd_log_entry_get_field(&e, "SERD_CHECK"); + if (check) { + fprintf(stderr, " [%s]", check); + } + + fprintf(stderr, "\n"); } va_end(ap); |