diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-24 01:39:32 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-24 01:39:32 +0200 |
commit | 02afe960644466b8e3854f3bec48c03a294c1e35 (patch) | |
tree | a964e96959e4436d0253d9b574c198a66a398bbe /shared/debug.h | |
parent | c43719d6ba9c7d3395af1f15c74882bdf26cdc86 (diff) |
Add some more annotations
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))) \ |