summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-07-04 20:05:56 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-07-04 20:05:56 +0000
commit53ec0df231f0abe62920b60b4682d9fc5b3ab615 (patch)
tree8e5e8f6326b6605d113b37e0902d42f8b121b7c0 /sys/nfs/nfs_socket.c
parent10d918317ccdb4fbd63a076e20208a71c86559dd (diff)
format string fixes: size_t and signedness
ok bluhm@
Diffstat (limited to 'sys/nfs/nfs_socket.c')
-rw-r--r--sys/nfs/nfs_socket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index e0f28e48ef4..bbd4e4c0614 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.101 2011/07/05 04:48:02 guenther Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.102 2013/07/04 20:05:55 sf Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -600,7 +600,7 @@ tryagain:
} while (error == EWOULDBLOCK);
if (!error && auio.uio_resid > 0) {
log(LOG_INFO,
- "short receive (%d/%d) from nfs server %s\n",
+ "short receive (%zu/%zu) from nfs server %s\n",
sizeof(u_int32_t) - auio.uio_resid,
sizeof(u_int32_t),
rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname);
@@ -615,7 +615,7 @@ tryagain:
* and forcing a disconnect/reconnect is all I can do.
*/
if (len > NFS_MAXPACKET) {
- log(LOG_ERR, "%s (%d) from nfs server %s\n",
+ log(LOG_ERR, "%s (%u) from nfs server %s\n",
"impossible packet length",
len,
rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname);
@@ -631,7 +631,7 @@ tryagain:
error == ERESTART);
if (!error && auio.uio_resid > 0) {
log(LOG_INFO,
- "short receive (%d/%d) from nfs server %s\n",
+ "short receive (%zu/%u) from nfs server %s\n",
len - auio.uio_resid, len,
rep->r_nmp->nm_mountp->mnt_stat.f_mntfromname);
error = EPIPE;