Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ee4bdf10
Unverified
Commit
ee4bdf10
authored
Jul 18, 2021
by
Erik Dubbelboer
Committed by
GitHub
Jul 18, 2021
Browse files
Fix format strings serverLogObjectDebugInfo to use unsigned (#2927)
This doesn't have any real impact, just a cleanup.
parent
c9ca3b70
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
ee4bdf10
...
@@ -938,8 +938,8 @@ void _serverAssertPrintClientInfo(const client *c) {
...
@@ -938,8 +938,8 @@ void _serverAssertPrintClientInfo(const client *c) {
}
}
void
serverLogObjectDebugInfo
(
const
robj
*
o
)
{
void
serverLogObjectDebugInfo
(
const
robj
*
o
)
{
serverLog
(
LL_WARNING
,
"Object type: %
d
"
,
o
->
type
);
serverLog
(
LL_WARNING
,
"Object type: %
u
"
,
o
->
type
);
serverLog
(
LL_WARNING
,
"Object encoding: %
d
"
,
o
->
encoding
);
serverLog
(
LL_WARNING
,
"Object encoding: %
u
"
,
o
->
encoding
);
serverLog
(
LL_WARNING
,
"Object refcount: %d"
,
o
->
refcount
);
serverLog
(
LL_WARNING
,
"Object refcount: %d"
,
o
->
refcount
);
#if UNSAFE_CRASH_REPORT
#if UNSAFE_CRASH_REPORT
/* This code is now disabled. o->ptr may be unreliable to print. in some
/* This code is now disabled. o->ptr may be unreliable to print. in some
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment