crosstool-ng/packages/glibc/2.12.1/0036-syslog.patch

16 lines
409 B
Diff
Raw Normal View History

---
misc/syslog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -152,7 +152,7 @@
#define INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
/* Check for invalid bits. */
if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
- syslog(INTERNALLOG,
+ __syslog(INTERNALLOG,
"syslog: unknown facility/priority: %x", pri);
pri &= LOG_PRIMASK|LOG_FACMASK;
}