remove separate debug printout macros

This commit is contained in:
Markus Fröschle
2016-10-04 20:44:59 +00:00
parent c904b7e208
commit fb7df8024c
8 changed files with 24 additions and 33 deletions

12
include/debug.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef DEBUG_H
#define DEBUG_H
#ifdef DEBUG
#define dbg(format, arg...) do { xprintf("DEBUG (%s()): " format, __FUNCTION__, ##arg);} while(0)
#else
#define dbg(format, arg...) do {;} while (0)
#endif /* DEBUG */
#define err(format, arg...) do { xprintf("ERROR (%s()): " format, __FUNCTION__, ##arg); } while(0)
#endif // DEBUG_H