blob: 5fa76a7b6416251c6b5927a6c6c25e55ef8fa7c3 [file]
#include <stdio.h>
#define BIT(nr) (1UL << (nr))
#define BUG() do { \
fprintf(stderr, "----------------------------------------------------------\n"); \
fprintf (stderr, "BUG on %s at %s: %i\n", __func__, __FILE__, __LINE__); \
} \
while (0)
#define WARN_ON(__test) do { \
if (__test) { \
fprintf(stderr, "----------------------------------------------------------\n");\
fprintf (stderr, "WARN_ON on %s at %s: %i\n", __func__, __FILE__, __LINE__); \
} \
} \
while (0)