cluster: STABLE3 - fence: fix print formats

Fabio M. Di Nitto fabbione@fedoraproject.org
Tue May 12 13:05:00 GMT 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f25f81abd05550d0cd8453bc3bba12e859a0ff9f
Commit:        f25f81abd05550d0cd8453bc3bba12e859a0ff9f
Parent:        1855aa2af15a1f13f8062a82824c3d61ec351389
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 May 12 15:02:05 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 54cd46e..25e99d2 100644
--- a/fence/fenced/cpg.c
+++ b/fence/fenced/cpg.c
@@ -1289,7 +1289,7 @@ static void deliver_cb(cpg_handle_t handle,
 	}
 
 	if (len < sizeof(*hd)) {
-		log_error("deliver_cb short message %d", len);
+		log_error("deliver_cb short message %zd", len);
 		return;
 	}
 
@@ -1759,7 +1759,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;
 	}
 



More information about the Cluster-cvs mailing list