Skip to content
Snippets Groups Projects
Commit 23c3dfc6 authored by BtbN's avatar BtbN
Browse files

Fix log_level check

parent c25f1059
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ static void def_log_handler(int log_level, const char *format, ...@@ -35,7 +35,7 @@ static void def_log_handler(int log_level, const char *format,
char out[4096]; char out[4096];
vsnprintf(out, sizeof(out), format, args); vsnprintf(out, sizeof(out), format, args);
if (log_level >= log_output_level) { if (log_level <= log_output_level) {
switch (log_level) { switch (log_level) {
case LOG_DEBUG: case LOG_DEBUG:
printf("debug: %s\n", out); printf("debug: %s\n", out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment