Skip to content
Snippets Groups Projects
Verified Commit 6164ac91 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

utils/cache_gc: fix debug prints

The difference is on "negative" char values, in which case
the prints were way too long.
parent 997f5fc7
No related branches found
No related tags found
1 merge request!1101utils/cache_gc: fix debug prints
Pipeline #72811 canceled
...@@ -128,7 +128,7 @@ void debug_printbin(const char *str, unsigned int len) ...@@ -128,7 +128,7 @@ void debug_printbin(const char *str, unsigned int len)
if (isprint(c)) if (isprint(c))
putchar(c); putchar(c);
else else
printf("`%02x`", c); printf("`%02hhx`", c);
} }
putchar('"'); putchar('"');
} }
......
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