summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2008-03-26 15:28:56 +0000
committeremaste <emaste@FreeBSD.org>2008-03-26 15:28:56 +0000
commitaa3c79c94cb7ebf8ecf35ad49cddf8e772e1e57d (patch)
treee360db5039e7594fedda0de0ee5b407b791230e3 /sys
parent1c5a20ad6636bc94593d66def619d69804afb6f7 (diff)
downloadFreeBSD-src-aa3c79c94cb7ebf8ecf35ad49cddf8e772e1e57d.zip
FreeBSD-src-aa3c79c94cb7ebf8ecf35ad49cddf8e772e1e57d.tar.gz
Add \n to the end of a printf string and remove it from panic strings.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aac/aac.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index d77f91f..eb88156 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)) {
OpenPOWER on IntegriCloud