Added function dprintf_no_syslog(). It is basically equivalent to

dprintf() with the exception that it doesn't write anything to the
syslog. The reason is that syslog_write() releases a semaphore and can
therefore not be invoked when the thread spinlock is held.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22428 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-10-03 22:14:53 +00:00
parent 0e69ce7702
commit 76ab7bdcf8
2 changed files with 36 additions and 11 deletions
+5 -2
View File
@@ -9,7 +9,7 @@
#define _KERNEL_DEBUG_H
#include <OS.h>
#include <KernelExport.h>
#define KDEBUG 1
@@ -27,7 +27,7 @@
#define ASSERT_ALWAYS_PRINT(x, format...) \
do { \
if (!(x)) { \
dprintf(format); \
dprintf_no_syslog(format); \
panic("ASSERT FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); \
} \
} while (0)
@@ -56,6 +56,9 @@ extern void debug_puts(const char *s, int32 length);
extern bool debug_debugger_running(void);
extern void debug_stop_screen_debug_output(void);
extern void dprintf_no_syslog(const char *format, ...)
__attribute__ ((format (__printf__, 1, 2)));
extern void _user_debug_output(const char *userString);
#ifdef __cplusplus