patches/glibc/ports-2.13/650-syslog.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sun May 11 23:55:16 2014 +0200 (2014-05-11)
changeset 3321 8a753e6c5621
permissions -rw-r--r--
scripts/functions: introduce target_bits_32 and target_bits_64 variables

These variables behave the same for bitness as their counterparts do
for endianness: they are defined to the appropriate bitness.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <dev@codyps.com>
yann@2438
     1
diff -durN glibc-cvs-2.9.orig/misc/syslog.c glibc-cvs-2.9/misc/syslog.c
yann@2438
     2
--- glibc-cvs-2.9.orig/misc/syslog.c	2009-06-01 10:16:50.000000000 +0200
yann@2438
     3
+++ glibc-cvs-2.9/misc/syslog.c	2009-06-01 10:17:20.000000000 +0200
yann@2438
     4
@@ -152,7 +152,7 @@
yann@2438
     5
 #define	INTERNALLOG	LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
yann@2438
     6
 	/* Check for invalid bits. */
yann@2438
     7
 	if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
yann@2438
     8
-		syslog(INTERNALLOG,
yann@2438
     9
+		__syslog(INTERNALLOG,
yann@2438
    10
 		    "syslog: unknown facility/priority: %x", pri);
yann@2438
    11
 		pri &= LOG_PRIMASK|LOG_FACMASK;
yann@2438
    12
 	}