aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2020-06-27 19:20:35 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2020-10-29 07:33:16 +0100
commit0cbabc39b1792fc013904ce2167264ba91926621 (patch)
treea9062661e9a790359cce89573db7ef37d8ffcbd1
parent28de2a54ca1b4ee86c5f9b5655b3b0532f294bbf (diff)
Debug: Fix display of debug levels greater 31
-rwxr-xr-x[-rw-r--r--]src/libdebug/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libdebug/debug.c b/src/libdebug/debug.c
index 89e0c16..771fa55 100644..100755
--- a/src/libdebug/debug.c
+++ b/src/libdebug/debug.c
@@ -125,7 +125,7 @@ void _printdebug(const char *file, const char __attribute__((unused)) *function,
s -= strlen(buffer);
}
- if (!(debug_mask & (1 << cat)))
+ if (!(debug_mask & ((uint64_t)1 << cat)))
return;
va_start(args, fmt);
@@ -229,7 +229,7 @@ int parse_debug_opt(const char *optarg)
fprintf(stderr, "Given debug category '%s' unknown, use 'list' to show available categories!\n", p);
return -EINVAL;
}
- debug_mask |= (1 << i);
+ debug_mask |= ((uint64_t)1 << i);
}
return 0;