diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 01:51:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 01:51:59 +0000 |
commit | 430e24f1924a311d24a78e1e622e6388703db4e6 (patch) | |
tree | 8fb92f6fbe8700a6fcec5fd764ad3a91478b652c /sys/dev/pci | |
parent | 9074059781eaa312dba0f38cd445d399fbbeede7 (diff) |
panic prints a newline for you, don't do it in the panic string
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/isp_pci.c | 2 | ||||
-rw-r--r-- | sys/dev/pci/ncr.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/isp_pci.c b/sys/dev/pci/isp_pci.c index ead4ca9f4d8..009a986be12 100644 --- a/sys/dev/pci/isp_pci.c +++ b/sys/dev/pci/isp_pci.c @@ -358,7 +358,7 @@ isp_pci_dmasetup(isp, xs, rq, iptrp, optr) } if (rq->req_handle >= RQUEST_QUEUE_LEN) { - panic("%s: bad handle (%d) in isp_pci_dmasetup\n", + panic("%s: bad handle (%d) in isp_pci_dmasetup", isp->isp_name, rq->req_handle); /* NOTREACHED */ } diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index 9fea3bf6a75..a2cd26780c5 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr.c,v 1.41 1998/08/07 16:48:19 pefo Exp $ */ +/* $OpenBSD: ncr.c,v 1.42 1999/01/11 01:51:58 millert Exp $ */ /* $NetBSD: ncr.c,v 1.63 1997/09/23 02:39:15 perry Exp $ */ /************************************************************************** @@ -1465,7 +1465,7 @@ static void ncr_attach (pcici_t tag, int unit); #if 0 static char ident[] = - "\n$OpenBSD: ncr.c,v 1.41 1998/08/07 16:48:19 pefo Exp $\n"; + "\n$OpenBSD: ncr.c,v 1.42 1999/01/11 01:51:58 millert Exp $\n"; #endif static const u_long ncr_version = NCR_VERSION * 11 @@ -3383,7 +3383,7 @@ static void ncr_script_copy_and_bind (ncb_p np, ncrcmd *src, ncrcmd *dst, int le } /* fall through */ default: - panic("ncr_script_copy_and_bind: weird relocation %x @ %ld\n", old, (long)(src - start)); + panic("ncr_script_copy_and_bind: weird relocation %x @ %ld", old, (long)(src - start)); break; } |