From 5f83b9b480944421611a7688dc43b090b48d6951 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 10 Aug 1998 14:27:34 +0000 Subject: 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. --- sys/pci/ncr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/pci') 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; -- cgit v1.1