diff options
author | gibbs <gibbs@FreeBSD.org> | 1998-09-17 00:08:29 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1998-09-17 00:08:29 +0000 |
commit | e0db131ba028922d0f48f643f31bda5630ef9d89 (patch) | |
tree | caff1d9d374a08d69896be4fcbfbc5a08906783e /sys/pci | |
parent | 7394d510b4f6733a7cd4f6483f101b0466cb0bf0 (diff) | |
download | FreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.zip FreeBSD-src-e0db131ba028922d0f48f643f31bda5630ef9d89.tar.gz |
Use %p with (void *) casts to print pointers with printf.
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/ncr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index 41c1ddc..7a0e12f 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: ncr.c,v 1.126 1998/09/16 17:11:59 gibbs Exp $ +** $Id: ncr.c,v 1.127 1998/09/16 22:46:04 gibbs Exp $ ** ** Device driver for the NCR 53C8XX PCI-SCSI-Controller Family. ** @@ -1288,7 +1288,7 @@ static void ncr_attach (pcici_t tag, int unit); static char ident[] = - "\n$Id: ncr.c,v 1.126 1998/09/16 17:11:59 gibbs Exp $\n"; + "\n$Id: ncr.c,v 1.127 1998/09/16 22:46:04 gibbs Exp $\n"; static const u_long ncr_version = NCR_VERSION * 11 + (u_long) sizeof (struct ncb) * 7 @@ -5643,9 +5643,9 @@ static void ncr_int_ma (ncb_p np, u_char dstat) } if (cp != np->header.cp) { printf ("%s: SCSI phase error fixup: CCB address mismatch " - "(0x%08x != 0x%08x) np->nccb = 0x%08x\n", - ncr_name (np), (intptr_t)cp, (intptr_t)np->header.cp, - (intptr_t)np->link_nccb); + "(%p != %p) np->nccb = %p\n", + ncr_name (np), (void *)cp, (void *)np->header.cp, + (void *)np->link_nccb); /* return;*/ } |