From ee4bdf10eee1ebf988b6d00ec8bdb212948e364d Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Sun, 18 Jul 2021 14:27:42 +0200 Subject: [PATCH] Fix format strings serverLogObjectDebugInfo to use unsigned (#2927) This doesn't have any real impact, just a cleanup. --- src/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index af6f99e2af..d3af4db66f 100644 --- a/src/debug.c +++ b/src/debug.c @@ -938,8 +938,8 @@ void _serverAssertPrintClientInfo(const client *c) { } void serverLogObjectDebugInfo(const robj *o) { - serverLog(LL_WARNING,"Object type: %d", o->type); - serverLog(LL_WARNING,"Object encoding: %d", o->encoding); + serverLog(LL_WARNING,"Object type: %u", o->type); + serverLog(LL_WARNING,"Object encoding: %u", o->encoding); serverLog(LL_WARNING,"Object refcount: %d", o->refcount); #if UNSAFE_CRASH_REPORT /* This code is now disabled. o->ptr may be unreliable to print. in some