]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: open-code LOG_MAKEPRI
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 8 Dec 2023 17:10:44 +0000 (18:10 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 12 Dec 2023 11:47:47 +0000 (12:47 +0100)
commite24dadc764b7dbe92e30eb6ece169763d6d5eec5
tree97836c40cfa7f8fcc30dcd8662c3b84ea8da6848
parent816881fc96d044400def35194e5a3d6f1e9ae1f3
dmesg: open-code LOG_MAKEPRI

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 <thomas@t-8ch.de>
(cherry picked from commit 38a4480bbf807b26bedf39f68c81b20828681b02)
sys-utils/dmesg.c