From a620bad028b89666a48f9ebff475ef0e4165bf9f Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 26 Mar 2008 15:28:56 +0000 Subject: [PATCH] Add \n to the end of a printf string and remove it from panic strings. --- sys/dev/aac/aac.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index d77f91f4d4b1..eb881563548a 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -334,7 +334,7 @@ aac_attach(struct aac_softc *sc) /* Create the AIF thread */ if (kproc_create((void(*)(void *))aac_command_thread, sc, &sc->aifthread, 0, 0, "aac%daif", unit)) - panic("Could not create AIF thread\n"); + panic("Could not create AIF thread"); /* Register the shutdown method to only be called post-dump */ if ((sc->eh = EVENTHANDLER_REGISTER(shutdown_final, aac_shutdown, @@ -385,7 +385,7 @@ aac_get_container_info(struct aac_softc *sc, struct aac_fib *fib, int cid) if (aac_sync_fib(sc, ContainerCommand, 0, fib, sizeof(struct aac_mntinfo))) { - printf("error probing container %d", cid); + printf("Error probing container %d\n", cid); return (NULL); } @@ -453,7 +453,7 @@ aac_add_container(struct aac_softc *sc, struct aac_mntinforesp *mir, int f) co = (struct aac_container *)malloc(sizeof *co, M_AACBUF, M_NOWAIT | M_ZERO); if (co == NULL) - panic("Out of memory?!\n"); + panic("Out of memory?!"); fwprintf(sc, HBA_FLAGS_DBG_INIT_B, "id %x name '%.16s' size %u type %d", mir->MntTable[0].ObjectId, mir->MntTable[0].FileSystemName, @@ -678,7 +678,7 @@ aac_detach(device_t dev) } if (sc->aifflags & AAC_AIFFLAGS_RUNNING) - panic("Cannot shutdown AIF thread\n"); + panic("Cannot shutdown AIF thread"); if ((error = aac_shutdown(dev))) return(error); @@ -978,7 +978,7 @@ aac_startio(struct aac_softc *sc) error = 0; } else if (error != 0) panic("aac_startio: unexpected error %d from " - "busdma\n", error); + "busdma", error); } else aac_map_command_sg(cm, NULL, 0, 0); } @@ -1680,7 +1680,7 @@ aac_check_firmware(struct aac_softc *sc) } if (code & AAC_KERNEL_PANIC) { device_printf(sc->aac_dev, - "FATAL: controller kernel panic\n"); + "FATAL: controller kernel panic"); return(ENXIO); } if (time_uptime > (then + AAC_BOOT_TIMEOUT)) {