Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2010 19:48:03 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216494 - head/sbin/hastd
Message-ID:  <201012161948.oBGJm3A5080157@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Dec 16 19:48:03 2010
New Revision: 216494
URL: http://svn.freebsd.org/changeset/base/216494

Log:
  The 'ret' variable is of type ssize_t and we use proper format for it (%zd), so
  no (bogus) cast is needed.
  
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Thu Dec 16 17:54:56 2010	(r216493)
+++ head/sbin/hastd/primary.c	Thu Dec 16 19:48:03 2010	(r216494)
@@ -1142,8 +1142,7 @@ local_send_thread(void *arg)
 				} else if (ret != ggio->gctl_length) {
 					reqlog(LOG_WARNING, 0, ggio,
 					    "Local request failed (%zd != %jd), trying remote node. ",
-					    (intmax_t)ret,
-					    (intmax_t)ggio->gctl_length);
+					    ret, (intmax_t)ggio->gctl_length);
 				}
 				QUEUE_INSERT1(hio, send, rncomp);
 				continue;
@@ -1162,7 +1161,7 @@ local_send_thread(void *arg)
 				hio->hio_errors[ncomp] = EIO;
 				reqlog(LOG_WARNING, 0, ggio,
 				    "Local request failed (%zd != %jd): ",
-				    (intmax_t)ret, (intmax_t)ggio->gctl_length);
+				    ret, (intmax_t)ggio->gctl_length);
 			} else {
 				hio->hio_errors[ncomp] = 0;
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012161948.oBGJm3A5080157>