svn commit: r216494 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Dec 16 19:48:03 UTC 2010
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;
}
More information about the svn-src-head
mailing list