From fc4d6e617d8d2a6d6b3fc775eae5e0da868ab352 Mon Sep 17 00:00:00 2001 From: ods15 Date: Thu, 29 Sep 2005 05:21:12 +0000 Subject: mp_msg cleanup. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16619 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'mp_msg.h') diff --git a/mp_msg.h b/mp_msg.h index 6709947b5f..3c63444747 100644 --- a/mp_msg.h +++ b/mp_msg.h @@ -114,26 +114,17 @@ int mp_msg_test(int mod, int lev); #endif #ifdef __GNUC__ -void mp_msg_c( int x, const char *format, ... ) __attribute__ ((format (printf, 2, 3))); -#define mp_msg(mod,lev, args... ) mp_msg_c(((mod)<<8)|(lev), ## args ) - -#ifdef MP_DEBUG -#define mp_dbg(mod,lev, args... ) mp_msg_c(((mod)<<8)|(lev), ## args ) -#else -// these messages are only usefull for developers, disable them -#define mp_dbg(mod,lev, args... ) -#endif +void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); #else // not GNU C -void mp_msg_c( int x, const char *format, ... ); -#define mp_msg(mod,lev, ... ) mp_msg_c(((mod)<<8)|(lev), __VA_ARGS__) +void mp_msg(int mod, int lev, const char *format, ... ); +#endif #ifdef MP_DEBUG -#define mp_dbg(mod,lev, ... ) mp_msg_c(((mod)<<8)|(lev), __VA_ARGS__) +#define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) #else // these messages are only usefull for developers, disable them #define mp_dbg(mod,lev, ... ) #endif -#endif #endif #endif -- cgit v1.2.3