From 38a4480bbf807b26bedf39f68c81b20828681b02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 8 Dec 2023 18:10:44 +0100 Subject: [PATCH] dmesg: open-code LOG_MAKEPRI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit LOG_MAKEPRI between musl and glibc differ in their behavior. musl performs the '<< 3' as part of the macro while glibc expects the caller to do so. Just provide our own implementation to avoid the issue. Signed-off-by: Thomas Weißschuh --- sys-utils/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index f32226f090..adc80c2590 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -125,7 +125,7 @@ static const struct dmesg_name level_names[] = * shifted code :-) */ #define FAC_BASE(f) ((f) >> 3) -#define LOG_RAW_FAC_PRI(fac, pri) LOG_MAKEPRI((fac << 3), (pri)) +#define LOG_RAW_FAC_PRI(fac, pri) ((fac << 3) | pri) static const struct dmesg_name facility_names[] = { -- 2.47.2