diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 14:50:57 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-03 14:50:57 +0200 |
commit | 3ab8ebf572cced0a63f8ba915d8494ef1784803d (patch) | |
tree | 558fa0777f4490b9ae8a55bb825dc6d990299347 /extras/volume_id/lib/libvolume_id-private.h | |
parent | 7744e869ecbfd2a508dbba46acfc2133a2f8f840 (diff) |
volume_id: add dbg() as noop to check for compile errors
Diffstat (limited to 'extras/volume_id/lib/libvolume_id-private.h')
-rw-r--r-- | extras/volume_id/lib/libvolume_id-private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/volume_id/lib/libvolume_id-private.h b/extras/volume_id/lib/libvolume_id-private.h index 2ce46502c4..3326bf3712 100644 --- a/extras/volume_id/lib/libvolume_id-private.h +++ b/extras/volume_id/lib/libvolume_id-private.h @@ -34,12 +34,15 @@ #define PACKED __attribute__((packed)) #endif +static inline void __attribute__ ((format(printf, 1, 2))) +log_null(const char *format, ...) {} + #define err(format, arg...) volume_id_log_fn(LOG_ERR, __FILE__, __LINE__, format, ##arg) #define info(format, arg...) volume_id_log_fn(LOG_INFO, __FILE__, __LINE__, format, ##arg) #ifdef DEBUG #define dbg(format, arg...) volume_id_log_fn(LOG_DEBUG, __FILE__, __LINE__, format, ##arg) #else -#define dbg(format, arg...) do { } while (0) +#define dbg(format, arg...) log_null(format, ##arg) #endif #if (__BYTE_ORDER == __LITTLE_ENDIAN) |