diff options
| author | Alexander Ziaee <ziaee@FreeBSD.org> | 2026-04-17 15:25:01 +0000 |
|---|---|---|
| committer | Alexander Ziaee <ziaee@FreeBSD.org> | 2026-04-17 15:29:19 +0000 |
| commit | 49e9b3061df036a73e8bc424c026158f3f57b183 (patch) | |
| tree | ab8f96880398f633b270e62baac13980eb94962d | |
| parent | b2aea7a042b6b6e6f1f4922e7e32b6d350a81327 (diff) | |
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
| -rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c | 14 |
1 files 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); } |
