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>
* 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[] =
{