summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-29 05:21:12 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-29 05:21:12 +0000
commitfc4d6e617d8d2a6d6b3fc775eae5e0da868ab352 (patch)
tree7a227d8a303fdeabf085a26421ef285c66256896 /mp_msg.h
parentf802240b8f9e1b9f2be95920548083bf5db0ca17 (diff)
downloadmpv-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.h17
1 files changed, 4 insertions, 13 deletions
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