From 17619433ba916fc1b2661b5358987388680fd416 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 20 Apr 2008 02:55:45 +0000 Subject: [PATCH] Made the used debug print function settable. Changed to ktrace_printf(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25068 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/network/protocols/unix/UnixDebug.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/network/protocols/unix/UnixDebug.h b/src/add-ons/kernel/network/protocols/unix/UnixDebug.h index 0104937992..f35c50cfb0 100644 --- a/src/add-ons/kernel/network/protocols/unix/UnixDebug.h +++ b/src/add-ons/kernel/network/protocols/unix/UnixDebug.h @@ -9,12 +9,16 @@ #include +//#define UNIX_DEBUG_PRINT dprintf +#define UNIX_DEBUG_PRINT ktrace_printf + #if UNIX_DEBUG_LEVEL -# define TRACE(args...) dprintf(args) +# define TRACE(args...) UNIX_DEBUG_PRINT(args) # define PRINT_ERROR(error) \ do { \ - dprintf("[%ld] l. %d: %s: %s\n", find_thread(NULL), \ - __LINE__, __PRETTY_FUNCTION__, strerror(error)); \ + UNIX_DEBUG_PRINT("[%ld] l. %d: %s: %s\n", \ + find_thread(NULL), __LINE__, __PRETTY_FUNCTION__, \ + strerror(error)); \ } while (false) # if UNIX_DEBUG_LEVEL >= 2 # define REPORT_ERROR(error) PRINT_ERROR(error)