Fix gcc -Wall warnings about printf arguments.

This commit is contained in:
leo 1996-05-14 10:28:18 +00:00
parent 5f0e599c40
commit c9a8578d2b
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.c,v 1.11 1995/10/20 00:47:47 cgd Exp $ */
/* $NetBSD: exec.c,v 1.12 1996/05/14 10:28:18 leo Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@ -83,7 +83,7 @@ exec(path, loadaddr, howto)
}
/* Text */
printf("%d", x.a_text);
printf("%ld", x.a_text);
addr = loadaddr;
#ifdef NO_LSEEK
if (N_GETMAGIC(x) == ZMAGIC && read(io, (char *)addr, 0x400) == -1)
@ -99,13 +99,13 @@ exec(path, loadaddr, howto)
*addr++ = 0;
/* Data */
printf("+%d", x.a_data);
printf("+%ld", x.a_data);
if (read(io, addr, x.a_data) != x.a_data)
goto shread;
addr += x.a_data;
/* Bss */
printf("+%d", x.a_bss);
printf("+%ld", x.a_bss);
for (i = 0; i < x.a_bss; i++)
*addr++ = 0;
@ -113,7 +113,7 @@ exec(path, loadaddr, howto)
ssym = addr;
bcopy(&x.a_syms, addr, sizeof(x.a_syms));
addr += sizeof(x.a_syms);
printf("+[%d", x.a_syms);
printf("+[%ld", x.a_syms);
if (read(io, addr, x.a_syms) != x.a_syms)
goto shread;
addr += x.a_syms;

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs.c,v 1.14 1996/02/26 23:05:21 gwr Exp $ */
/* $NetBSD: nfs.c,v 1.15 1996/05/14 10:28:26 leo Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@ -274,7 +274,7 @@ nfs_readdata(d, off, addr, len)
rlen = cc - hlen;
x = ntohl(repl->count);
if (rlen < x) {
printf("nfsread: short packet, %d < %d\n", rlen, x);
printf("nfsread: short packet, %d < %ld\n", rlen, x);
errno = EBADRPC;
return(-1);
}