uboot-envtools: fix build with musl
[openwrt/staging/chunkeey.git] / toolchain / musl / patches-0.9.15 / 110-syslog_log_upto_parenthesis.patch
1 --- a/include/syslog.h
2 +++ b/include/syslog.h
3 @@ -21,7 +21,7 @@ extern "C" {
4 #define LOG_MAKEPRI(f, p) (((f)<<3)|(p))
5
6 #define LOG_MASK(p) (1<<(p))
7 -#define LOG_UPTO(p) ((1<<(p)+1)-1)
8 +#define LOG_UPTO(p) ((1<<((p)+1))-1)
9
10 #define LOG_KERN (0<<3)
11 #define LOG_USER (1<<3)