]> 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>
Mon, 11 Dec 2023 11:03:44 +0000 (12:03 +0100)
commit38a4480bbf807b26bedf39f68c81b20828681b02
tree20ad73703cddfdbac3ca368ce82fedef5c797cbd
parente07c072c15fe11efe8c3d034cd4b362593f0bd20
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>
sys-utils/dmesg.c