* [Ocfs2-devel] [PATCH] ocfs2: fix snprintf format specifier in dlmdebug.c
@ 2015-01-08 9:31 alex chen
2015-01-16 23:26 ` Mark Fasheh
0 siblings, 1 reply; 2+ messages in thread
From: alex chen @ 2015-01-08 9:31 UTC (permalink / raw)
To: ocfs2-devel
Use snprintf format specifier "%lu" instead of "%ld" for
argument of type 'unsigned long'.
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
---
fs/ocfs2/dlm/dlmdebug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c
index 149eb55..8251360 100644
--- a/fs/ocfs2/dlm/dlmdebug.c
+++ b/fs/ocfs2/dlm/dlmdebug.c
@@ -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;
}
--
1.8.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2: fix snprintf format specifier in dlmdebug.c
2015-01-08 9:31 [Ocfs2-devel] [PATCH] ocfs2: fix snprintf format specifier in dlmdebug.c alex chen
@ 2015-01-16 23:26 ` Mark Fasheh
0 siblings, 0 replies; 2+ messages in thread
From: Mark Fasheh @ 2015-01-16 23:26 UTC (permalink / raw)
To: ocfs2-devel
On Thu, Jan 08, 2015 at 05:31:25PM +0800, alex chen wrote:
> Use snprintf format specifier "%lu" instead of "%ld" for
> argument of type 'unsigned long'.
>
> Signed-off-by: Alex Chen <alex.chen@huawei.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
> Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Btw, did this review happen on the mailing list? It's customary for review
to happen publicly.
Thanks,
--Mark
--
Mark Fasheh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-16 23:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08 9:31 [Ocfs2-devel] [PATCH] ocfs2: fix snprintf format specifier in dlmdebug.c alex chen
2015-01-16 23:26 ` Mark Fasheh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.