patches/glibc/2.9/560-syslog.patch
author |
Cody P Schafer <dev@codyps.com> |
|
Mon May 12 00:02:13 2014 +0200 (2014-05-12) |
changeset 3322 |
eb13867a034c |
permissions |
-rw-r--r-- |
arch/powerpc: add powerpc64le support
Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).
powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).
Also make powerpc64 non-experimental. It's practically old at this point.
Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@1394
|
1 |
diff -durN glibc-cvs-2.9.orig/misc/syslog.c glibc-cvs-2.9/misc/syslog.c
|
yann@1394
|
2 |
--- glibc-cvs-2.9.orig/misc/syslog.c 2009-06-01 10:16:50.000000000 +0200
|
yann@1394
|
3 |
+++ glibc-cvs-2.9/misc/syslog.c 2009-06-01 10:17:20.000000000 +0200
|
yann@1394
|
4 |
@@ -152,7 +152,7 @@
|
yann@1394
|
5 |
#define INTERNALLOG LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
|
yann@1394
|
6 |
/* Check for invalid bits. */
|
yann@1394
|
7 |
if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
|
yann@1394
|
8 |
- syslog(INTERNALLOG,
|
yann@1394
|
9 |
+ __syslog(INTERNALLOG,
|
yann@1394
|
10 |
"syslog: unknown facility/priority: %x", pri);
|
yann@1394
|
11 |
pri &= LOG_PRIMASK|LOG_FACMASK;
|
yann@1394
|
12 |
}
|