Fix format strings serverLogObjectDebugInfo to use unsigned (#2927)

This doesn't have any real impact, just a cleanup.
This commit is contained in:
Erik Dubbelboer 2021-07-18 14:27:42 +02:00 committed by GitHub
parent c9ca3b7065
commit ee4bdf10ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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