aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-07-10 19:11:03 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2012-07-10 22:39:30 +0200
commitc68257729de8a2165e161b187cf866897f71c502 (patch)
tree95683ce6453495474f494bbadafec306e643aac3 /misc
parentba7fefc8e00d027e0298d180aecce0689f660329 (diff)
downloadglibc-c68257729de8a2165e161b187cf866897f71c502.zip
glibc-c68257729de8a2165e161b187cf866897f71c502.tar.gz
glibc-c68257729de8a2165e161b187cf866897f71c502.tar.bz2
Fix LOG_MAKEPRI to agree with BSD
Diffstat (limited to 'misc')
-rw-r--r--misc/sys/syslog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/sys/syslog.h b/misc/sys/syslog.h
index 77123ab..41331a8 100644
--- a/misc/sys/syslog.h
+++ b/misc/sys/syslog.h
@@ -60,12 +60,12 @@
#define LOG_PRIMASK 0x07 /* mask to extract priority part (internal) */
/* extract priority */
#define LOG_PRI(p) ((p) & LOG_PRIMASK)
-#define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri))
+#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
#ifdef SYSLOG_NAMES
#define INTERNAL_NOPRI 0x10 /* the "no priority" priority */
/* mark "facility" */
-#define INTERNAL_MARK LOG_MAKEPRI(LOG_NFACILITIES, 0)
+#define INTERNAL_MARK LOG_MAKEPRI(LOG_NFACILITIES << 3, 0)
typedef struct _code {
char *c_name;
int c_val;