Skip to content

Commit 0020b10

Browse files
committed
FreeBSD: Improve dmesg kernel message prefix
Provide intuitive log search keywords and increased system consistency. Signed-off-by: Alexander Ziaee <ziaee@FreeBSD.org>
1 parent e73ada7 commit 0020b10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

module/os/freebsd/spl/spl_cmn_err.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@ vcmn_err(int ce, const char *fmt, va_list adx)
4040
prefix = NULL; /* silence unwitty compilers */
4141
switch (ce) {
4242
case CE_CONT:
43-
prefix = "Solaris(cont): ";
43+
prefix = "zfs(cont): ";
4444
break;
4545
case CE_NOTE:
46-
prefix = "Solaris: NOTICE: ";
46+
prefix = "zfs: NOTICE: ";
4747
break;
4848
case CE_WARN:
49-
prefix = "Solaris: WARNING: ";
49+
prefix = "zfs: WARNING: ";
5050
break;
5151
case CE_PANIC:
52-
prefix = "Solaris(panic): ";
52+
prefix = "zfs(panic): ";
5353
break;
5454
case CE_IGNORE:
5555
break;
5656
default:
57-
panic("Solaris: unknown severity level");
57+
panic("zfs: unknown severity level");
5858
}
5959
if (ce == CE_PANIC) {
6060
vsnprintf(buf, sizeof (buf), fmt, adx);

0 commit comments

Comments
 (0)