From cf25e664d83f2470fef1326b5e17b116f6d01af6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Nov 1999 20:50:45 +0000 Subject: [PATCH] (LOG): Only print message if __td_debug is nonzero. --- linuxthreads_db/thread_dbP.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h index 7e9fb486c66..13e534afe63 100644 --- a/linuxthreads_db/thread_dbP.h +++ b/linuxthreads_db/thread_dbP.h @@ -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. */ -- 2.47.2