diff --git a/include/syslog.h b/include/syslog.h index d82b77948e..59f1301fb4 100644 --- a/include/syslog.h +++ b/include/syslog.h @@ -125,7 +125,7 @@ /* Used with setlogmask() */ #define LOG_MASK(p) (1 << (p)) -#define LOG_UPTO(p) ((1 << (p)) - 1) +#define LOG_UPTO(p) ((1 << ((p)+1)) - 1) #define LOG_ALL 0xff /****************************************************************************