]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(LOG): Only print message if __td_debug is nonzero.
authorUlrich Drepper <drepper@redhat.com>
Mon, 22 Nov 1999 20:50:45 +0000 (20:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 22 Nov 1999 20:50:45 +0000 (20:50 +0000)
linuxthreads_db/thread_dbP.h

index 7e9fb486c6636fc937548f8b3fd5cd2127f2d76e..13e534afe635c86eebc94d03511506a2b640d29e 100644 (file)
@@ -9,7 +9,12 @@
 
 
 /* Comment out the following for less verbose output.  */
-#define LOG(c) __libc_write (2, c "\n", strlen (c "\n"))
+#ifndef NDEBUG
+# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n"))
+extern int __td_debug;
+#else
+# define LOG(c)
+#endif
 
 
 /* Handle for a process.  This type is opaque.  */