diff options
Diffstat (limited to 'shared/debug.h')
-rw-r--r-- | shared/debug.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/shared/debug.h b/shared/debug.h index 8581a9a..6f1a054 100644 --- a/shared/debug.h +++ b/shared/debug.h @@ -1,6 +1,7 @@ #ifndef foodebughfoo #define foodebughfoo +/* FIXME: Should these be shared? */ enum debug_lvl { DBG_ERROR = (0x1 << 1), DBG_INFO = (0x1 << 2), @@ -27,11 +28,6 @@ debug_enabled(enum debug_lvl lvl) return !!(lvl & debug_mask); } -/* These need to be defined in the linking binary */ -void __debug(enum debug_lvl lvl, const char *fmt, ...) __attribute__((format(printf, 2, 3))); - -void __die(const char *fmt, ...) __attribute__((format(printf, 1, 2))); - #define __ifdebug(lvl, fmt, ...) \ do { \ if (debug_enabled((lvl))) \ |