瀏覽代碼

Use write instead of __libc_write for debug, hide __td_debug

Peter S. Mazinger 19 年之前
父節點
當前提交
4594edc979
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      libpthread/linuxthreads.old_db/thread_dbP.h
  2. 1 1
      libpthread/linuxthreads_db/thread_dbP.h

+ 2 - 2
libpthread/linuxthreads.old_db/thread_dbP.h

@@ -33,8 +33,8 @@ enum
 
 /* Comment out the following for less verbose output.  */
 #ifndef NDEBUG
-# define LOG(c) if (__td_debug) __libc_write (2, c "\n", strlen (c "\n"))
-extern int __td_debug;
+# define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n"))
+extern int __td_debug attribute_hidden;
 #else
 # define LOG(c)
 #endif

+ 1 - 1
libpthread/linuxthreads_db/thread_dbP.h

@@ -32,7 +32,7 @@ enum
 /* Comment out the following for less verbose output.  */
 #ifndef NDEBUG
 # define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n"))
-extern int __td_debug;
+extern int __td_debug attribute_hidden;
 #else
 # define LOG(c)
 #endif