Fix some debugging printf formats.

This commit is contained in:
thorpej 1998-01-23 19:27:44 +00:00
parent cacd48c0d6
commit 60c3299e3e
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs.c,v 1.22 1997/06/26 19:11:45 drochner Exp $ */ /* $NetBSD: nfs.c,v 1.23 1998/01/23 19:27:44 thorpej Exp $ */
/*- /*-
* Copyright (c) 1993 John Brezak * Copyright (c) 1993 John Brezak
@ -539,7 +539,7 @@ nfs_close(f)
#ifdef NFS_DEBUG #ifdef NFS_DEBUG
if (debug) if (debug)
printf("nfs_close: fp=0x%x\n", fp); printf("nfs_close: fp=0x%lx\n", (u_long)fp);
#endif #endif
if (fp) if (fp)
@ -565,7 +565,8 @@ nfs_read(f, buf, size, resid)
#ifdef NFS_DEBUG #ifdef NFS_DEBUG
if (debug) if (debug)
printf("nfs_read: size=%d off=%d\n", size, (int)fp->off); printf("nfs_read: size=%lu off=%d\n", (u_long)size,
(int)fp->off);
#endif #endif
while ((int)size > 0) { while ((int)size > 0) {
twiddle(); twiddle();

View File

@ -1,4 +1,4 @@
/* $NetBSD: rpc.c,v 1.17 1997/06/26 19:11:53 drochner Exp $ */ /* $NetBSD: rpc.c,v 1.18 1998/01/23 19:27:45 thorpej Exp $ */
/* /*
* Copyright (c) 1992 Regents of the University of California. * Copyright (c) 1992 Regents of the University of California.
@ -193,7 +193,7 @@ rpc_call(d, prog, vers, proc, sdata, slen, rdata, rlen)
#ifdef RPC_DEBUG #ifdef RPC_DEBUG
if (debug) if (debug)
printf("callrpc: cc=%d rlen=%d\n", cc, rlen); printf("callrpc: cc=%ld rlen=%lu\n", (long)cc, (u_long)rlen);
#endif #endif
if (cc == -1) if (cc == -1)
return (-1); return (-1);
@ -250,7 +250,7 @@ recvrpc(d, pkt, len, tleft)
errno = 0; errno = 0;
#ifdef RPC_DEBUG #ifdef RPC_DEBUG
if (debug) if (debug)
printf("recvrpc: called len=%d\n", len); printf("recvrpc: called len=%lu\n", (u_long)len);
#endif #endif
n = readudp(d, pkt, len, tleft); n = readudp(d, pkt, len, tleft);