[PATCH] Shut out some debugging messages for LD_DEBUG=statistics
Jakub Jelinek
jakub@redhat.com
Mon Sep 9 03:48:00 GMT 2002
Hi!
Even LD_DEBUG=statistics or LD_TRACE_PRELINKING causes lots of debugging
messages, which is pretty annoying (e.g. LD_DEBUG=statistics should really
only enable statistics and nothing else).
2002-09-09 Jakub Jelinek <jakub@redhat.com>
* elf/dl-error.c (_dl_signal_cerror): Don't print anything if only
LD_DEBUG=statistics or LD_TRACE_PRELINKING.
--- libc/elf/dl-error.c.jj 2002-07-01 12:31:36.000000000 +0200
+++ libc/elf/dl-error.c 2002-09-09 12:43:39.000000000 +0200
@@ -119,7 +119,8 @@ internal_function
_dl_signal_cerror (int errcode, const char *objname, const char *occation,
const char *errstring)
{
- if (__builtin_expect (GL(dl_debug_mask), 0))
+ if (__builtin_expect (GL(dl_debug_mask)
+ & ~(DL_DEBUG_STATISTICS|DL_DEBUG_PRELINK), 0))
INTUSE(_dl_debug_printf) ("%s: error: %s: %s (%s)\n", objname, occation,
errstring, receiver ? "continued" : "fatal");
Jakub
More information about the Libc-hacker
mailing list