diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-01-11 05:12:41 +0000 |
commit | b3067fd524234e263e58b215d0fb24d414bf1c34 (patch) | |
tree | 5c1576265dded5700ab387af81051fabd39f3396 /sys/arch/sun3/stand | |
parent | 9ee95b4b405b050512cf782b508d774f4601a6b5 (diff) |
panic prints a newline for you, don't do it in the panic string
Diffstat (limited to 'sys/arch/sun3/stand')
-rw-r--r-- | sys/arch/sun3/stand/libsa/netif_sun.c | 8 | ||||
-rw-r--r-- | sys/arch/sun3/stand/libsa/promdev.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sun3/stand/libsa/netif_sun.c b/sys/arch/sun3/stand/libsa/netif_sun.c index a72d55e9428..bc7a5993cc7 100644 --- a/sys/arch/sun3/stand/libsa/netif_sun.c +++ b/sys/arch/sun3/stand/libsa/netif_sun.c @@ -164,7 +164,7 @@ netif_init(aux) } if ((dd->rbuf == NULL) || (dd->tbuf == NULL)) - panic("netif_init: malloc failed\n"); + panic("netif_init: malloc failed"); #ifdef NETIF_DEBUG if (debug) @@ -339,7 +339,7 @@ netif_put(desc, pkt, len) #ifdef PARANOID if (sif == NULL) - panic("netif_put: no saif ptr\n"); + panic("netif_put: no saif ptr"); #endif /* @@ -349,7 +349,7 @@ netif_put(desc, pkt, len) * very much data anyway, so the copy is fine. */ if (slen > dd->tbuf_len) - panic("netif_put: slen=%d\n", slen); + panic("netif_put: slen=%d", slen); bcopy(pkt, dd->tbuf, slen); if (slen < 60) { @@ -429,7 +429,7 @@ break2: /* If we went beyond our buffer, were dead! */ if (rlen > dd->rbuf_len) - panic("netif_get: rlen=%d\n", rlen); + panic("netif_get: rlen=%d", rlen); /* The caller's buffer may be smaller... */ if (rlen > maxlen) diff --git a/sys/arch/sun3/stand/libsa/promdev.c b/sys/arch/sun3/stand/libsa/promdev.c index 5ce7ee01fb9..f3982b8aaf3 100644 --- a/sys/arch/sun3/stand/libsa/promdev.c +++ b/sys/arch/sun3/stand/libsa/promdev.c @@ -200,12 +200,12 @@ prom_mapin(physaddr, length, maptype) int i, pa, pte, va; if (length > (4*NBPG)) - panic("prom_mapin: length=%d\n", length); + panic("prom_mapin: length=%d", length); for (i = 0; i < prom_mapinfo_cnt; i++) if (prom_mapinfo[i].maptype == maptype) goto found; - panic("prom_mapin: invalid maptype %d\n", maptype); + panic("prom_mapin: invalid maptype %d", maptype); found: pte = prom_mapinfo[i].pgtype; |