From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13747 invoked by alias); 9 Sep 2002 10:48:10 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 13620 invoked from network); 9 Sep 2002 10:48:07 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 9 Sep 2002 10:48:07 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g89Am3813541; Mon, 9 Sep 2002 12:48:03 +0200 Date: Mon, 09 Sep 2002 03:48:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Shut out some debugging messages for LD_DEBUG=statistics Message-ID: <20020909124803.G1013@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-09/txt/msg00009.txt.bz2 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 * 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