Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tcf/main/main_reg.c')
-rw-r--r--agent/tcf/main/main_reg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/tcf/main/main_reg.c b/agent/tcf/main/main_reg.c
index de29d36a..f77588ff 100644
--- a/agent/tcf/main/main_reg.c
+++ b/agent/tcf/main/main_reg.c
@@ -79,7 +79,10 @@ int main(int argc, char **argv) {
}
switch (c) {
case 'l':
- log_mode = strtol(s, 0, 0);
+ if (parse_trace_mode(s, &log_mode) != 0) {
+ fprintf(stderr, "Cannot parse log level: %s\n", s);
+ exit(1);
+ }
break;
case 'L':

Back to the top