summaryrefslogtreecommitdiffstats
path: root/sys/rpc
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-11-15 01:58:47 +0000
committeralfred <alfred@FreeBSD.org>2003-11-15 01:58:47 +0000
commit9059a984da5a6d1794c2cc94bc9ac1a6685f9052 (patch)
treeca662683fd806548f9a3a6bd1c589cbc26027c7c /sys/rpc
parent21ec09f9ec2e38774de766656825ba9916662318 (diff)
downloadFreeBSD-src-9059a984da5a6d1794c2cc94bc9ac1a6685f9052.zip
FreeBSD-src-9059a984da5a6d1794c2cc94bc9ac1a6685f9052.tar.gz
Use %zu to printf a size_t instead of an int cast.
Requested by: jmallett, wollman
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/rpcclnt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c
index a0ae12c..70b5adc 100644
--- a/sys/rpc/rpcclnt.c
+++ b/sys/rpc/rpcclnt.c
@@ -836,9 +836,9 @@ tryagain:
} while (error == EWOULDBLOCK);
if (!error && auio.uio_resid > 0) {
log(LOG_INFO,
- "short receive (%d/%d) from rpc server %s\n",
- (int) sizeof(u_int32_t) - auio.uio_resid,
- (int) sizeof(u_int32_t),
+ "short receive (%zu/%zu) from rpc server %s\n",
+ sizeof(u_int32_t) - auio.uio_resid,
+ sizeof(u_int32_t),
rep->r_rpcclnt->rc_prog->prog_name);
error = EPIPE;
}
OpenPOWER on IntegriCloud