ocfs2: fix snprintf format specifier in dlmdebug.c
PATCH 1/1 ocfs2: fix snprintf format specifier in dlmdebug.c
Use snprintf format specifier "%lu" instead of "%ld" for argument of type 'unsigned long'.
Signed-off-by Alex Chen <[email protected]>
Reviewed-by Joseph Qi <[email protected]>
--- fs/ocfs2/dlm/dlmdebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/ocfs2/dlm/dlmdebug.c +2 -2
@@ -406,7 +406,7 @@ static int debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len) }spin_unlock (&dlm->spinlock); - out +=snprintf (buf + out, len - out,"Total on list: %ld\n" , total); + out +=snprintf (buf + out, len - out,"Total on list: %lu\n" , total);return out; }
@@ -464,7 +464,7 @@ static int debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len)spin_unlock (&dlm->master_lock); out +=snprintf (buf + out, len - out, -"Total: %ld, Longest: %ld\n" , total, longest); +"Total: %lu, Longest: %lu\n" , total, longest);return out; }
Signature · 1 line
1.8.4.3
PATCH 1/1 ocfs2: fix snprintf format specifier in dlmdebug.c
Quoted 4 lines · alex chen
Use snprintf format specifier "%lu" instead of "%ld" for argument of type 'unsigned long'.
Signed-off-by Alex Chen <[email protected]>
Reviewed-by Mark Fasheh <[email protected]>
Quoted 1 line
Reviewed-by Joseph Qi <[email protected]>
Btw, did this review happen on the mailing list? It's customary for review to happen publicly.
Thanks,
--Mark
--
Mark Fasheh