From 136a4127d794aeb4deed1847825f9ec1dba546ef Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 13 Jul 2003 14:43:28 +0000 Subject: moved some annonying messages to debug mode only git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10416 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp_msg.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mp_msg.c') diff --git a/mp_msg.c b/mp_msg.c index fdf6d363e3..9265d6271f 100644 --- a/mp_msg.c +++ b/mp_msg.c @@ -31,14 +31,18 @@ static int mp_msg_levels[MSGT_MAX]; // verbose level of this module void mp_msg_init(){ #ifdef USE_I18N +#ifdef MP_DEBUG fprintf(stdout, "Using GNU internationalization\n"); fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); +#endif setlocale(LC_ALL, ""); /* set from the environment variables */ bindtextdomain("mplayer", PREFIX"/share/locale"); textdomain("mplayer"); +#ifdef MP_DEBUG fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); - fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); + fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL)); +#endif #endif mp_msg_set_level(MSGL_STATUS); } @@ -90,7 +94,8 @@ void mp_msg_c( int x, const char *format, ... ){ #endif #ifdef MSG_USE_COLORS -#if 1 +/* that's only a silly color test */ +#ifdef MP_DEBUG { int c; static int flag=1; if(flag) -- cgit v1.2.3