Added ASSERT() macro to debug.h

Cleanup of printf calls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-05-09 20:22:28 +00:00
parent 0b2d0f8217
commit 89739e8c0a
2 changed files with 4 additions and 7 deletions
@@ -24,6 +24,7 @@
#ifdef DEBUG
#define TRACE(a...) dprintf("ipro1000: " a)
#define ASSERT(a) if (a) ; else panic("ipro1000: ASSERT failed, " #a)
/* used by if_em.h */
#define DEBUG_INIT 1
@@ -34,6 +35,7 @@
#else
#define TRACE(a...)
#define ASSERT(a)
/* used by if_em.h */
#define DEBUG_INIT 0
@@ -45,16 +45,13 @@ POSSIBILITY OF SUCH DAMAGE.
#include "debug.h"
#include "timer.h"
#define DBG 0
#define ASSERT(x) if(!(x)) panic("ipro1000: " #x)
#define usec_delay(x) snooze(x)
#define msec_delay(x) snooze(1000*(x))
#define MSGOUT(S, A, B) dprintf("ipro1000: " S "\n", A, B)
#define DEBUGFUNC(F) DEBUGOUT(F);
#if DBG
#if DEBUG_HW
#define DEBUGOUT(S) dprintf("ipro1000: " S "\n")
#define DEBUGOUT1(S,A) dprintf("ipro1000: " S "\n",A)
#define DEBUGOUT2(S,A,B) dprintf("ipro1000: " S "\n",A,B)
@@ -68,8 +65,6 @@ POSSIBILITY OF SUCH DAMAGE.
#define DEBUGOUT7(S,A,B,C,D,E,F,G)
#endif
#define printf dprintf
// no longer used in FreeBSD
#define splx(s)
#define splimp() 0