diff options
author | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-29 05:21:12 +0000 |
---|---|---|
committer | ods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-29 05:21:12 +0000 |
commit | fc4d6e617d8d2a6d6b3fc775eae5e0da868ab352 (patch) | |
tree | 7a227d8a303fdeabf085a26421ef285c66256896 /mp_msg.h | |
parent | f802240b8f9e1b9f2be95920548083bf5db0ca17 (diff) | |
download | mpv-fc4d6e617d8d2a6d6b3fc775eae5e0da868ab352.tar.bz2 mpv-fc4d6e617d8d2a6d6b3fc775eae5e0da868ab352.tar.xz |
mp_msg cleanup.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16619 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.h')
-rw-r--r-- | mp_msg.h | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -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 |