OSDN Git Service

syslog.h: missing LOG_MAKEPRI definition
authorMark Salyzyn <salyzyn@google.com>
Thu, 12 Mar 2015 20:21:35 +0000 (13:21 -0700)
committerMark Salyzyn <salyzyn@google.com>
Thu, 12 Mar 2015 20:21:35 +0000 (13:21 -0700)
Bug: 19681572
Change-Id: Ice5f5cb1f71522ffc47b2243a8dc4c277c2a288f

libc/include/syslog.h

index cbceab2..8000f03 100644 (file)
@@ -47,6 +47,7 @@ __BEGIN_DECLS
 
 #define LOG_PRIMASK 7
 #define LOG_PRI(x) ((x) & LOG_PRIMASK)
+#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
 
 /* Facilities are currently ignored on Android. */
 #define LOG_KERN     0000