2 * ES1370 Haiku Driver for ES1370 audio
4 * Copyright 2002-2007, Haiku, Inc.
5 * Distributed under the terms of the MIT License.
8 * Marcus Overhagen, marcus@overhagen.de
9 * Jerome Duval, jerome.duval@free.fr
16 * PRINT() executes dprintf if DEBUG = 0 (disabled), or expands to LOG() when DEBUG > 0
17 * TRACE() executes dprintf if DEBUG > 0
18 * LOG() executes dprintf and writes to the logfile if DEBUG > 0
21 /* DEBUG == 0, no debugging, PRINT writes to syslog
22 * DEBUG == 1, TRACE & LOG, PRINT
23 * DEBUG == 2, TRACE & LOG, PRINT with snooze()
34 #define PRINT(a) log_printf a
35 #define TRACE(a) debug_printf a
36 #define LOG(a) log_printf a
37 #define LOG_CREATE() log_create()
38 #define ASSERT(a) if (a) {} else LOG(("ASSERT failed! file = %s, line = %d\n",__FILE__,__LINE__))
40 void log_printf(const char *text
,...);
41 void debug_printf(const char *text
,...);
43 void debug_printf(const char *text
,...);
44 #define PRINT(a) debug_printf a
45 #define TRACE(a) ((void)(0))
46 #define ASSERT(a) ((void)(0))
47 #define LOG(a) ((void)(0))