comparison mp_msg.c @ 10415:c1247b33c424

moved some annonying messages to debug mode only
author alex
date Sun, 13 Jul 2003 14:43:28 +0000
parents b2e4f9dab7ad
children 1e04ac498440
comparison
equal deleted inserted replaced
10414:7e19afc06cbd 10415:c1247b33c424
29 29
30 #if 1 30 #if 1
31 31
32 void mp_msg_init(){ 32 void mp_msg_init(){
33 #ifdef USE_I18N 33 #ifdef USE_I18N
34 #ifdef MP_DEBUG
34 fprintf(stdout, "Using GNU internationalization\n"); 35 fprintf(stdout, "Using GNU internationalization\n");
35 fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); 36 fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
36 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); 37 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
38 #endif
37 setlocale(LC_ALL, ""); /* set from the environment variables */ 39 setlocale(LC_ALL, ""); /* set from the environment variables */
38 bindtextdomain("mplayer", PREFIX"/share/locale"); 40 bindtextdomain("mplayer", PREFIX"/share/locale");
39 textdomain("mplayer"); 41 textdomain("mplayer");
42 #ifdef MP_DEBUG
40 fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); 43 fprintf(stdout, "Current domain: %s\n", textdomain(NULL));
41 fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); 44 fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL));
45 #endif
42 #endif 46 #endif
43 mp_msg_set_level(MSGL_STATUS); 47 mp_msg_set_level(MSGL_STATUS);
44 } 48 }
45 49
46 void mp_msg_set_level(int verbose){ 50 void mp_msg_set_level(int verbose){
88 } 92 }
89 } 93 }
90 #endif 94 #endif
91 95
92 #ifdef MSG_USE_COLORS 96 #ifdef MSG_USE_COLORS
93 #if 1 97 /* that's only a silly color test */
98 #ifdef MP_DEBUG
94 { int c; 99 { int c;
95 static int flag=1; 100 static int flag=1;
96 if(flag) 101 if(flag)
97 for(c=0;c<16;c++) 102 for(c=0;c<16;c++)
98 printf("\033[%d;3%dm*** COLOR TEST %d ***\n",(c>7),c&7,c); 103 printf("\033[%d;3%dm*** COLOR TEST %d ***\n",(c>7),c&7,c);