From 6164ac91fcb7ffd96c73de75cd0cbba13492d4bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 30 Nov 2020 09:06:22 +0100 Subject: [PATCH] utils/cache_gc: fix debug prints The difference is on "negative" char values, in which case the prints were way too long. --- utils/cache_gc/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cache_gc/db.c b/utils/cache_gc/db.c index 0ab829b9e..e0ee43df1 100644 --- a/utils/cache_gc/db.c +++ b/utils/cache_gc/db.c @@ -128,7 +128,7 @@ void debug_printbin(const char *str, unsigned int len) if (isprint(c)) putchar(c); else - printf("`%02x`", c); + printf("`%02hhx`", c); } putchar('"'); } -- 2.47.2