public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Shut out some debugging messages for LD_DEBUG=statistics
@ 2002-09-09  3:48 Jakub Jelinek
  2002-09-09 17:36 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2002-09-09  3:48 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Shut out some debugging messages for LD_DEBUG=statistics
  2002-09-09  3:48 [PATCH] Shut out some debugging messages for LD_DEBUG=statistics Jakub Jelinek
@ 2002-09-09 17:36 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2002-09-09 17:36 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> 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).

I've applied the patch.  Thanks,

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9fT2Q2ijCOnn/RHQRAp4EAKCiligjiRf+0e4PFYheMoiuNKOxwgCggI2j
XnfAOspFjS4XTxvoA/WTrq8=
=uLqn
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-10  0:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-09  3:48 [PATCH] Shut out some debugging messages for LD_DEBUG=statistics Jakub Jelinek
2002-09-09 17:36 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).