From: Ulrich Drepper Date: Mon, 22 Nov 1999 20:50:45 +0000 (+0000) Subject: (LOG): Only print message if __td_debug is nonzero. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf25e664d83f2470fef1326b5e17b116f6d01af6;p=thirdparty%2Fglibc.git (LOG): Only print message if __td_debug is nonzero. --- 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. */