summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-06 21:26:49 +0000
committerphk <phk@FreeBSD.org>2004-06-06 21:26:49 +0000
commit4c3fd8116d1815c5e18c8569e354a99c8c7ce1c8 (patch)
tree6b5fca44622323941a76adcf768eb12cd9c793f7 /sys/kern
parent5c9b04429a84b964e9619870accf1c4b6209412a (diff)
downloadFreeBSD-src-4c3fd8116d1815c5e18c8569e354a99c8c7ce1c8.zip
FreeBSD-src-4c3fd8116d1815c5e18c8569e354a99c8c7ce1c8.tar.gz
Remove filename+line number from panic messages.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_shutdown.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 45d71ea..49c6a41 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -474,7 +474,7 @@ static u_int panic_cpu = NOCPU;
* MPSAFE
*/
void
-__panic(const char *file, int line, const char *fmt, ...)
+panic(const char *fmt, ...)
{
struct thread *td = curthread;
int bootopt, newpanic;
@@ -508,11 +508,11 @@ __panic(const char *file, int line, const char *fmt, ...)
if (newpanic) {
(void)vsnprintf(buf, sizeof(buf), fmt, ap);
panicstr = buf;
- printf("panic: %s\nat line %d in file %s\n", buf, line, file);
+ printf("panic: %s\n", buf);
} else {
printf("panic: ");
vprintf(fmt, ap);
- printf("\nat line %d in file %s", line, file);
+ printf("\n");
}
va_end(ap);
#ifdef SMP
OpenPOWER on IntegriCloud