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:
Alexander Ziaee authored and GitHub committed 2026-03-09 10:17:23 -07:00
1 parent 304de7f19b
commit d45c8d6489
1 file changed
+5 -5
+5 -5
View File
@@ -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);