diff options
author | bde <bde@FreeBSD.org> | 1998-09-29 09:14:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-09-29 09:14:52 +0000 |
commit | b2e75d324e849ab02801b9c5e4fe37b8d7ca469c (patch) | |
tree | 9ca541ad28532061c207c2381c48f704bbe95849 /sys/pci | |
parent | fc873fcda41ef862b9fe18861f39573f01bb5436 (diff) | |
download | FreeBSD-src-b2e75d324e849ab02801b9c5e4fe37b8d7ca469c.zip FreeBSD-src-b2e75d324e849ab02801b9c5e4fe37b8d7ca469c.tar.gz |
FIxed printf format errors (an new one that is only detected on systems
with pointers smaller than u_longs, and 2 possibly-truncating casts in
the same printf).
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/ncr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index a602478..d9a5ce2 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: ncr.c,v 1.134 1998/09/26 14:29:59 dfr Exp $ +** $Id: ncr.c,v 1.135 1998/09/26 14:37:49 dfr Exp $ ** ** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family. ** @@ -1357,7 +1357,7 @@ static void ncr_attach (pcici_t tag, int unit); static char ident[] = - "\n$Id: ncr.c,v 1.134 1998/09/26 14:29:59 dfr Exp $\n"; + "\n$Id: ncr.c,v 1.135 1998/09/26 14:37:49 dfr Exp $\n"; static const u_long ncr_version = NCR_VERSION * 11 + (u_long) sizeof (struct ncb) * 7 @@ -5807,11 +5807,11 @@ static void ncr_int_ma (ncb_p np, u_char dstat) }; if (DEBUG_FLAGS & DEBUG_PHASE) { - printf ("OCMD=%x\nTBLP=%lx OLEN=%x OADR=%x\n", + printf ("OCMD=%x\nTBLP=%p OLEN=%lx OADR=%lx\n", (unsigned) (READSCRIPT_OFF(vdsp_base, vdsp_off) >> 24), - (u_long) tblp, - (unsigned) olen, - (unsigned) oadr); + (void *) tblp, + (u_long) olen, + (u_long) oadr); }; /* |