git: 49e9b3061df0 - main - dtrace: Improve dmesg kernel message prefix
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 15:31:17 UTC
The branch main has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=49e9b3061df036a73e8bc424c026158f3f57b183
commit 49e9b3061df036a73e8bc424c026158f3f57b183
Author: Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2026-04-17 15:25:01 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-04-17 15:29:19 +0000
dtrace: Improve dmesg kernel message prefix
Provide intuitive log search keywords and increased system consistency.
MFC after: 2 weeks
Reported by: mav
Reviewed by: 0mp, dteske
OpenZFS change: d45c8d648 (Improve dmesg kernel message prefix)
Differential Revision: https://reviews.freebsd.org/D55765
---
sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c b/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
index 24abeb66ea51..a9c2a0906ef2 100644
--- a/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
+++ b/sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
@@ -35,21 +35,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 = "dtrace(cont): ";
break;
case CE_NOTE:
- prefix = "Solaris: NOTICE: ";
+ prefix = "dtrace: NOTICE: ";
break;
case CE_WARN:
- prefix = "Solaris: WARNING: ";
+ prefix = "dtrace: WARNING: ";
break;
case CE_PANIC:
- prefix = "Solaris(panic): ";
+ prefix = "dtrace(panic): ";
break;
case CE_IGNORE:
break;
default:
- panic("Solaris: unknown severity level");
+ panic("dtrace: unknown severity level");
}
if (ce == CE_PANIC) {
vsnprintf(buf, sizeof(buf), fmt, adx);
@@ -76,7 +76,7 @@ int
assfail(const char *a, const char *f, int l)
{
- panic("solaris assert: %s, file: %s, line: %d", a, f, l);
+ panic("dtrace assert: %s, file: %s, line: %d", a, f, l);
return (0);
}
@@ -86,6 +86,6 @@ assfail3(const char *a, uintmax_t lv, const char *op, uintmax_t rv,
const char *f, int l)
{
- panic("solaris assert: %s (0x%jx %s 0x%jx), file: %s, line: %d",
+ panic("dtrace assert: %s (0x%jx %s 0x%jx), file: %s, line: %d",
a, lv, op, rv, f, l);
}