patches/glibc/ports-2.10.1/650-syslog.patch
author |
Johannes Stezenbach <js@sig21.net> |
|
Tue Jul 13 12:12:32 2010 +0200 (2010-07-13) |
changeset 2030 |
7dc77b443864 |
parent 1394 |
51d112dfbe79
|
permissions |
-rw-r--r-- |
libc/uClibc: fix verbosity level for uClibc >= 0.9.30
uClibc >= 0.9.30 supports three verbosity levels, according to "make help":
V="" - Quiet build (default)
V=1 - Brief build (show defines, ld flags)
V=2 - Very verbose build
I think older versions of uClibc treat V=2 the same as V=1.
For current uClibc, only V=2 shows the full command lines.
Signed-off-by: Johannes Stezenbach <js@sig21.net>
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 |
}
|