patches/glibc/ports-2.13/650-syslog.patch
author |
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> |
|
Sun Jul 17 18:01:28 2011 +0200 (2011-07-17) |
changeset 2895 |
86ea5204e9ce |
permissions |
-rw-r--r-- |
libc/newlib: build newlib in the proper step
Currently, newlib is built in the start_file step, which is wrong, but was
needed when the baremetal integration was... well, 'unfinished'.
Now that we build the baremetal compiler from the final cc step, and a
proper core gcc in pass-1 and pass-2, we can move the newlib build to the
step do_libc, where it belongs.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
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 |
}
|