mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
FreeBSD: Improve dmesg kernel message prefix
Provide intuitive log search keywords and increased system consistency. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Rob Norris <[email protected]> Signed-off-by: Alexander Ziaee <[email protected]> Closes #18290
This commit is contained in:
1 parent
304de7f19b
commit
d45c8d6489
1 file changed
+5
-5
@@ -40,21 +40,21 @@ vcmn_err(int ce, const char *fmt, va_list adx)
|
||||
prefix = NULL; /* silence unwitty compilers */
|
||||
switch (ce) {
|
||||
case CE_CONT:
|
||||
prefix = "Solaris(cont): ";
|
||||
prefix = "zfs(cont): ";
|
||||
break;
|
||||
case CE_NOTE:
|
||||
prefix = "Solaris: NOTICE: ";
|
||||
prefix = "zfs: NOTICE: ";
|
||||
break;
|
||||
case CE_WARN:
|
||||
prefix = "Solaris: WARNING: ";
|
||||
prefix = "zfs: WARNING: ";
|
||||
break;
|
||||
case CE_PANIC:
|
||||
prefix = "Solaris(panic): ";
|
||||
prefix = "zfs(panic): ";
|
||||
break;
|
||||
case CE_IGNORE:
|
||||
break;
|
||||
default:
|
||||
panic("Solaris: unknown severity level");
|
||||
panic("zfs: unknown severity level");
|
||||
}
|
||||
if (ce == CE_PANIC) {
|
||||
vsnprintf(buf, sizeof (buf), fmt, adx);
|
||||
|
||||
Reference in new issue
Block a user