diff options
| author | Ulrich Drepper <drepper@redhat.com> | 1999-11-22 20:50:45 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-22 20:50:45 +0000 |
| commit | cf25e664d83f2470fef1326b5e17b116f6d01af6 (patch) | |
| tree | 31ccf7906f2a1f233cb27f030c0d4afaa9e63c75 /linuxthreads_db | |
| parent | 97bd7582f32c37da8602087e396a0d26a8fbfd4e (diff) | |
| download | glibc-cf25e664d83f2470fef1326b5e17b116f6d01af6.tar.xz glibc-cf25e664d83f2470fef1326b5e17b116f6d01af6.zip | |
(LOG): Only print message if __td_debug is nonzero.
Diffstat (limited to 'linuxthreads_db')
| -rw-r--r-- | linuxthreads_db/thread_dbP.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads_db/thread_dbP.h b/linuxthreads_db/thread_dbP.h index 7e9fb486c6..13e534afe6 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. */ |
