summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index e7ee4f8..4c46804 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,5 +1,5 @@
-const char * sc_log_str (int t) {
- switch (t) {
+const char * sc_log_str (SC_OPT_TYPE t) {
+ switch (t & SC_LOG_MASK) {
case SC_LOG_ERROR:
return "SC_LOG_ERROR";
case SC_LOG_WARNING: