diff options
author | phk <phk@FreeBSD.org> | 2004-06-06 21:26:49 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-06 21:26:49 +0000 |
commit | 4c3fd8116d1815c5e18c8569e354a99c8c7ce1c8 (patch) | |
tree | 6b5fca44622323941a76adcf768eb12cd9c793f7 /sys/kern | |
parent | 5c9b04429a84b964e9619870accf1c4b6209412a (diff) | |
download | FreeBSD-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.c | 6 |
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 |