summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-10 14:27:34 +0000
committerbde <bde@FreeBSD.org>1998-08-10 14:27:34 +0000
commit5f83b9b480944421611a7688dc43b090b48d6951 (patch)
tree6913131568125ddbb5166c46f3d52902607605c6 /sys/pci
parent0e700d0611e1dc6fa1f19261cb75ac18878dd2b8 (diff)
downloadFreeBSD-src-5f83b9b480944421611a7688dc43b090b48d6951.zip
FreeBSD-src-5f83b9b480944421611a7688dc43b090b48d6951.tar.gz
Fixed the formatting of some tables (mainly the one produced by ps
in ddb) which I broke by changing %8[l]x to %8p. Hacked the central printf routine to not add an "0x" prefix for %p formats if the field width is nonzero. The tables are still horribly misformatted on 64-bit machines. Use %p instead of %8p to print pointers when the field width isn't important.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index f1145c9..8ddf69a 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.121 1998/07/12 20:32:52 se Exp $
+** $Id: ncr.c,v 1.122 1998/07/14 11:19:32 bde Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -1344,7 +1344,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.121 1998/07/12 20:32:52 se Exp $\n";
+ "\n$Id: ncr.c,v 1.122 1998/07/14 11:19:32 bde Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -4116,7 +4116,7 @@ static int32_t ncr_start (struct scsi_xfer * xp)
if ((unsigned)xp->datalen > 128*1024*1024) {
PRINT_ADDR(xp);
- printf ("trying to transfer %8lx bytes, mem addr = %8p\n",
+ printf ("trying to transfer %8lx bytes, mem addr = %p\n",
(u_long) xp->datalen, (void *) xp->data);
{
int j;
OpenPOWER on IntegriCloud