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/lib/libsa | |
parent | 9ee95b4b405b050512cf782b508d774f4601a6b5 (diff) |
panic prints a newline for you, don't do it in the panic string
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r-- | sys/lib/libsa/arp.c | 5 | ||||
-rw-r--r-- | sys/lib/libsa/netif.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/sys/lib/libsa/arp.c b/sys/lib/libsa/arp.c index 46fd2d0003e..4fb93c8cbd6 100644 --- a/sys/lib/libsa/arp.c +++ b/sys/lib/libsa/arp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arp.c,v 1.6 1998/02/23 20:32:18 niklas Exp $ */ +/* $OpenBSD: arp.c,v 1.7 1999/01/11 05:12:25 millert Exp $ */ /* $NetBSD: arp.c,v 1.15 1996/10/13 02:28:58 christos Exp $ */ /* @@ -126,8 +126,7 @@ arpwhohas(d, addr) arpsend, &wbuf.data, sizeof(wbuf.data), arprecv, &rbuf.data, sizeof(rbuf.data)); if (i == -1) { - panic("arp: no response for %s\n", - inet_ntoa(addr)); + panic("arp: no response for %s", inet_ntoa(addr)); } /* Store ethernet address in cache */ diff --git a/sys/lib/libsa/netif.c b/sys/lib/libsa/netif.c index d73c19e098d..8adafa0913f 100644 --- a/sys/lib/libsa/netif.c +++ b/sys/lib/libsa/netif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netif.c,v 1.5 1997/07/17 23:06:04 mickey Exp $ */ +/* $OpenBSD: netif.c,v 1.6 1999/01/11 05:12:26 millert Exp $ */ /* $NetBSD: netif.c,v 1.7 1996/10/13 02:29:03 christos Exp $ */ /* @@ -192,7 +192,7 @@ netif_attach(nif, desc, machdep_hint) desc->io_netif = nif; #ifdef PARANOID if (drv->netif_init == NULL) - panic("%s%d: no netif_init support\n", drv->netif_bname, + panic("%s%d: no netif_init support", drv->netif_bname, nif->nif_unit); #endif drv->netif_init(desc, machdep_hint); @@ -212,7 +212,7 @@ netif_detach(nif) #endif #ifdef PARANOID if (drv->netif_end == NULL) - panic("%s%d: no netif_end support\n", drv->netif_bname, + panic("%s%d: no netif_end support", drv->netif_bname, nif->nif_unit); #endif drv->netif_end(nif); @@ -237,7 +237,7 @@ netif_get(desc, pkt, len, timo) #endif #ifdef PARANOID if (drv->netif_get == NULL) - panic("%s%d: no netif_get support\n", drv->netif_bname, + panic("%s%d: no netif_get support", drv->netif_bname, nif->nif_unit); #endif rv = drv->netif_get(desc, pkt, len, timo); @@ -267,7 +267,7 @@ netif_put(desc, pkt, len) #endif #ifdef PARANOID if (drv->netif_put == NULL) - panic("%s%d: no netif_put support\n", drv->netif_bname, + panic("%s%d: no netif_put support", drv->netif_bname, nif->nif_unit); #endif rv = drv->netif_put(desc, pkt, len); |