diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2018-11-29 18:37:48 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2018-11-29 18:37:48 +0000 |
commit | 55d5c949431ec940e16cd25f681c986bccce952b (patch) | |
tree | 9b0ab18efbe4cad38532e26dfe11dd4dfac1885f /stand/uboot | |
parent | c2c3992b391a88cbf64cf664108ef8b8cd5b7f8f (diff) | |
download | src-55d5c949431ec940e16cd25f681c986bccce952b.tar.gz src-55d5c949431ec940e16cd25f681c986bccce952b.zip |
The libstand's panic() appends its own '\n' to the message, so that users of the API
don't need to supply one.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=341253
Diffstat (limited to 'stand/uboot')
-rw-r--r-- | stand/uboot/lib/copy.c | 2 | ||||
-rw-r--r-- | stand/uboot/lib/net.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stand/uboot/lib/copy.c b/stand/uboot/lib/copy.c index 131b88d85861..7fd5fd671c02 100644 --- a/stand/uboot/lib/copy.c +++ b/stand/uboot/lib/copy.c @@ -133,7 +133,7 @@ uboot_loadaddr(u_int type, void *data, uint64_t addr) } } if (biggest_size == 0) - panic("Not enough DRAM to load kernel\n"); + panic("Not enough DRAM to load kernel"); #if 0 printf("Loading kernel into region 0x%08jx-0x%08jx (%ju MiB)\n", (uintmax_t)biggest_block, diff --git a/stand/uboot/lib/net.c b/stand/uboot/lib/net.c index a0d1cb4f4583..2e1b9ab4caa4 100644 --- a/stand/uboot/lib/net.c +++ b/stand/uboot/lib/net.c @@ -324,7 +324,7 @@ net_init(struct iodesc *desc, void *machdep_hint) sc = nif->nif_devdata = &uboot_softc; if ((err = ub_dev_open(sc->sc_handle)) != 0) - panic("%s%d: initialisation failed with error %d\n", + panic("%s%d: initialisation failed with error %d", nif->nif_driver->netif_bname, nif->nif_unit, err); /* Get MAC address */ @@ -359,6 +359,6 @@ net_end(struct netif *nif) int err; if ((err = ub_dev_close(sc->sc_handle)) != 0) - panic("%s%d: net_end failed with error %d\n", + panic("%s%d: net_end failed with error %d", nif->nif_driver->netif_bname, nif->nif_unit, err); } |