aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-09 20:44:17 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-09 20:44:17 +0100
commitbfed857f76ad177cc17db499339ea0ede7947d1e (patch)
treea258f08faa8b7cc971d7b94cfb95accd3446eac4
parentdbb9d18decbe607767b4d5e201c0ff18cba6b818 (diff)
downloadpack-bfed857f76ad177cc17db499339ea0ede7947d1e.tar.gz
pack-bfed857f76ad177cc17db499339ea0ede7947d1e.tar.xz
pack-bfed857f76ad177cc17db499339ea0ede7947d1e.zip
Add default case for trace type
-rw-r--r--trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace.c b/trace.c
index 04dbae6..05556bc 100644
--- a/trace.c
+++ b/trace.c
@@ -20,6 +20,7 @@ static void trace(enum pack_trace level, const char *fmt, va_list va)
switch (level) {
case PACK_TRACE_CALL: type = "CALL"; break;
case PACK_TRACE_DEBUG: type = "DEBUG"; break;
+ default: type = "???"; break;
}
fprintf(stderr, "PACK_TRACE_%s: ", type);