libeplayer3: get rid of __FILE__ for shorter logmessages

This commit is contained in:
Stefan Seyfried
2012-02-26 16:11:45 +01:00
parent 12b74e6ef3
commit d2a05977e5
27 changed files with 71 additions and 54 deletions

View File

@@ -54,15 +54,16 @@
#ifdef FB_DEBUG
static short debug_level = 10;
static const char *FILENAME = "framebuffer.c";
#define fb_printf(level, fmt, x...) do { \
if (debug_level >= level) printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x); } while (0)
if (debug_level >= level) printf("[%s:%s] " fmt, FILENAME, __FUNCTION__, ## x); } while (0)
#else
#define fb_printf(level, fmt, x...)
#endif
#ifndef FB_SILENT
#define fb_err(fmt, x...) do { printf("[%s:%s] " fmt, __FILE__, __FUNCTION__, ## x); } while (0)
#define fb_err(fmt, x...) do { printf("[%s:%s] " fmt, FILENAME, __FUNCTION__, ## x); } while (0)
#else
#define fb_err(fmt, x...)
#endif