Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2025 12:35:59 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 621f43ffe2eb - main - linuxkpi: Declare several log message prefixes
Message-ID:  <202508091235.579CZxWY020594@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=621f43ffe2eb4e2565663f14f8027467b1a8146e

commit 621f43ffe2eb4e2565663f14f8027467b1a8146e
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2025-06-20 16:56:17 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2025-08-09 12:26:24 +0000

    linuxkpi: Declare several log message prefixes
    
    The amdgpu DRM driver started to use `HW_ERR` in Linux 6.9.
    
    Reviewed by:    emaste, manu
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D50990
---
 sys/compat/linuxkpi/common/include/linux/printk.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/printk.h b/sys/compat/linuxkpi/common/include/linux/printk.h
index da9d45122d4d..d2d197682782 100644
--- a/sys/compat/linuxkpi/common/include/linux/printk.h
+++ b/sys/compat/linuxkpi/common/include/linux/printk.h
@@ -94,4 +94,10 @@ print_hex_dump_bytes(const char *prefix_str, const int prefix_type,
 	0;							\
 })
 
+#define	FW_BUG		"[Firmware Bug]: "
+#define	FW_WARN		"[Firmware Warn]: "
+#define	FW_INFO		"[Firmware Info]: "
+#define	HW_ERR		"[Hardware Error]: "
+#define	DEPRECATED	"[Deprecated]: "
+
 #endif					/* _LINUXKPI_LINUX_PRINTK_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508091235.579CZxWY020594>