From 02afe960644466b8e3854f3bec48c03a294c1e35 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Wed, 24 Jun 2020 01:39:32 +0200 Subject: Add some more annotations --- shared/debug.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'shared/debug.h') 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))) \ -- cgit v1.2.3