diff options
-rw-r--r-- | nptl_db/thread_dbP.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl_db/thread_dbP.h b/nptl_db/thread_dbP.h index 8845722..b52c254 100644 --- a/nptl_db/thread_dbP.h +++ b/nptl_db/thread_dbP.h @@ -61,7 +61,9 @@ enum /* Comment out the following for less verbose output. */ #ifndef NDEBUG -# define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n")) +# define LOG(c) \ + if (__td_debug) \ + assert (write (2, c "\n", strlen (c "\n")) == strlen (c "\n")) extern int __td_debug attribute_hidden; #else # define LOG(c) |