This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
fence: master - fence: fix print formats
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 23 Jun 2009 07:21:27 +0000 (UTC)
- Subject: fence: master - fence: fix print formats
Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=69c344948eaaddf8bfef6f4057ecef1c727567ff
Commit: 69c344948eaaddf8bfef6f4057ecef1c727567ff
Parent: f393b86e796cb6640283fafabed17bd058932850
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Tue May 12 15:02:05 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Jun 23 09:10:27 2009 +0200
fence: fix print formats
stable3/fence/fenced/cpg.c:1292: warning: format â??%dâ?? expects type â??intâ??, but argument 3 has type â??size_tâ??
stable3/fence/fenced/cpg.c:1292: warning: format â??%dâ?? expects type â??intâ??, but argument 5 has type â??size_tâ??
stable3/fence/fenced/cpg.c:1762: warning: format â??%dâ?? expects type â??intâ??, but argument 3 has type â??size_tâ??
stable3/fence/fenced/cpg.c:1762: warning: format â??%dâ?? expects type â??intâ??, but argument 5 has type â??size_tâ??
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
fence/fenced/cpg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/fenced/cpg.c b/fence/fenced/cpg.c
index 233eb48..0f445de 100644
--- a/fence/fenced/cpg.c
+++ b/fence/fenced/cpg.c
@@ -1292,7 +1292,7 @@ static void deliver_cb(cpg_handle_t handle, struct cpg_name *group_name,
}
if (len < sizeof(*hd)) {
- log_error("deliver_cb short message %d", len);
+ log_error("deliver_cb short message %zd", len);
return;
}
@@ -1762,7 +1762,7 @@ static void deliver_cb_daemon(cpg_handle_t handle,
struct fd_header *hd;
if (len < sizeof(*hd)) {
- log_error("deliver_cb short message %d", len);
+ log_error("deliver_cb short message %zd", len);
return;
}