aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-31 17:17:37 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-31 17:18:40 +0200
commit859aa04ec2ee66709261a62d7f002d6a01c97a81 (patch)
treea4272f7f35299ec2efe814e7113a9004d4087bff
parenta63851bb4726c89d9a3c5755d78d1c4bbc3f3b2e (diff)
afb-trace: use constants for verbosity level
Change-Id: I0908c5057efe5360cccd3b2e1e3f926f48453bd2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-trace.c b/src/afb-trace.c
index 2d098407..f97d9252 100644
--- a/src/afb-trace.c
+++ b/src/afb-trace.c
@@ -40,6 +40,7 @@
#include "afb-trace.h"
#include "wrap-json.h"
+#include "verbose.h"
/*******************************************************************************/
/***** default names *****/
@@ -182,7 +183,7 @@ static const char *verbosity_level_name(int level)
"debug"
};
- return level >= 3 && level <= 7 ? names[level - 3] : NULL;
+ return level >= Log_Level_Error && level <= Log_Level_Debug ? names[level - Log_Level_Error] : NULL;
}
/* generic hook */