summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2003-09-03 12:43:41 +0000
committerhe <he@NetBSD.org>2003-09-03 12:43:41 +0000
commit022f01cef7ccc1dbb3923e075be709858ea8aa4d (patch)
treed3ee8eb07e5c0fbebdc3a65036907c4eecf78988 /sys/lib
parent412d4e7d1bcef533ab7497045489ce2bd1e8042f (diff)
Cast size_t to u_long before printing, and use %lu instead of %d as format.
Fixes compilation on alpha.
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libsa/nfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/nfs.c b/sys/lib/libsa/nfs.c
index fcd5d9da4cb..3fc24eb5392 100644
--- a/sys/lib/libsa/nfs.c
+++ b/sys/lib/libsa/nfs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs.c,v 1.33 2003/08/31 22:40:48 fvdl Exp $ */
+/* $NetBSD: nfs.c,v 1.34 2003/09/03 12:43:41 he Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@@ -347,7 +347,7 @@ nfs_readdata(d, off, addr, len)
rlen = cc - hlen;
x = ntohl(repl->count);
if (rlen < (size_t)x) {
- printf("nfsread: short packet, %d < %ld\n", rlen, x);
+ printf("nfsread: short packet, %lu < %ld\n", (u_long) rlen, x);
errno = EBADRPC;
return(-1);
}