[MPlayer-dev-eng] [PATCH] verbosity reduction

Diego Biurrun diego at biurrun.de
Sun Sep 18 21:22:30 CEST 2005


Here is another in my seemingly endless series of small patches that
reduce overall verbosity bit by bit.

Comment or see this applied in a few days ;)

Diego
-------------- next part --------------
--- cpudetect.c	25 May 2005 08:48:31 -0000	1.40
+++ cpudetect.c	18 Sep 2005 19:17:35 -0000
@@ -533,47 +533,47 @@
           }
         }
 #endif /* SYS_DARWIN */
-        mp_msg(MSGT_CPUDETECT,MSGL_INFO,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
+        mp_msg(MSGT_CPUDETECT,MSGL_V,"AltiVec %sfound\n", (caps->hasAltiVec ? "" : "not "));
 #endif /* HAVE_ALTIVEC */
 
 #ifdef ARCH_IA64
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Intel Itanium\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: Intel Itanium\n");
 #endif
 
 #ifdef ARCH_SPARC
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Sun Sparc\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: Sun Sparc\n");
 #endif
 
 #ifdef ARCH_ARMV4L
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: ARM\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: ARM\n");
 #endif
 
 #ifdef ARCH_POWERPC
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: PowerPC\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: PowerPC\n");
 #endif
 
 #ifdef ARCH_ALPHA
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Digital Alpha\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: Digital Alpha\n");
 #endif
 
 #ifdef ARCH_SGI_MIPS
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: SGI MIPS\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: SGI MIPS\n");
 #endif
 
 #ifdef ARCH_PA_RISC
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: Hewlett-Packard PA-RISC\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: Hewlett-Packard PA-RISC\n");
 #endif
 
 #ifdef ARCH_S390
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: IBM S/390\n");
 #endif
 
 #ifdef ARCH_S390X
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO,"CPU: IBM S/390X\n");
+	mp_msg(MSGT_CPUDETECT,MSGL_V,"CPU: IBM S/390X\n");
 #endif
 
 #ifdef ARCH_VAX
-	mp_msg(MSGT_CPUDETECT,MSGL_INFO, "CPU: Digital VAX\n" );
+	mp_msg(MSGT_CPUDETECT,MSGL_V, "CPU: Digital VAX\n" );
 #endif
 }
 #endif /* !ARCH_X86 */
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.871
diff -u -r1.871 mplayer.c
--- mplayer.c	15 Sep 2005 03:08:35 -0000	1.871
+++ mplayer.c	18 Sep 2005 19:17:58 -0000
@@ -1070,33 +1070,32 @@
   /* Test for cpu capabilities (and corresponding OS support) for optimizing */
   GetCpuCaps(&gCpuCaps);
 #if defined(ARCH_X86) || defined(ARCH_X86_64)
-  mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags:  MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
+  mp_msg(MSGT_CPLAYER,MSGL_V,"CPUflags:  MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n",
       gCpuCaps.hasMMX,gCpuCaps.hasMMX2,
       gCpuCaps.has3DNow, gCpuCaps.has3DNowExt,
       gCpuCaps.hasSSE, gCpuCaps.hasSSE2);
 #ifdef RUNTIME_CPUDETECT
-  mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithRuntimeDetection);
+  mp_msg(MSGT_CPLAYER,MSGL_V, MSGTR_CompiledWithRuntimeDetection);
 #else
-  mp_msg(MSGT_CPLAYER,MSGL_INFO, MSGTR_CompiledWithCPUExtensions);
+  mp_msg(MSGT_CPLAYER,MSGL_V, MSGTR_CompiledWithCPUExtensions);
 #ifdef HAVE_MMX
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX");
+  mp_msg(MSGT_CPLAYER,MSGL_V," MMX");
 #endif
 #ifdef HAVE_MMX2
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," MMX2");
+  mp_msg(MSGT_CPLAYER,MSGL_V," MMX2");
 #endif
 #ifdef HAVE_3DNOW
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNow");
+  mp_msg(MSGT_CPLAYER,MSGL_V," 3DNow");
 #endif
 #ifdef HAVE_3DNOWEX
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," 3DNowEx");
+  mp_msg(MSGT_CPLAYER,MSGL_V," 3DNowEx");
 #endif
 #ifdef HAVE_SSE
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE");
+  mp_msg(MSGT_CPLAYER,MSGL_V," SSE");
 #endif
 #ifdef HAVE_SSE2
-  mp_msg(MSGT_CPLAYER,MSGL_INFO," SSE2");
+  mp_msg(MSGT_CPLAYER,MSGL_V," SSE2");
 #endif
-  mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n\n");
 #endif /* RUNTIME_CPUDETECT */
 #endif /* defined(ARCH_X86) || defined(ARCH_X86_64) */
 
Index: parser-cfg.c
===================================================================
RCS file: /cvsroot/mplayer/main/parser-cfg.c,v
retrieving revision 1.7
diff -u -r1.7 parser-cfg.c
--- parser-cfg.c	15 Nov 2004 09:09:27 -0000	1.7
+++ parser-cfg.c	18 Sep 2005 19:17:58 -0000
@@ -64,7 +64,7 @@
 		ret = 0;
 		goto out;
 	}
-	mp_msg(MSGT_CFGPARSER,MSGL_INFO,"\n");
+ 	mp_msg(MSGT_CFGPARSER,MSGL_V,"\n");
 
 	while (fgets(line, MAX_LINE_LEN, fp)) {
 		if (errors >= 16) {
Index: libmpcodecs/vd.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.c,v
retrieving revision 1.83
diff -u -r1.83 vd.c
--- libmpcodecs/vd.c	18 Apr 2005 15:52:37 -0000	1.83
+++ libmpcodecs/vd.c	18 Sep 2005 19:18:37 -0000
@@ -162,7 +162,7 @@
     if(!sh->disp_w || !sh->disp_h)
 	return 0;
 
-    mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_VoConfigRequest,w,h,vo_format_name(preferred_outfmt));
+    mp_msg(MSGT_DECVIDEO,MSGL_V,MSGTR_VoConfigRequest,w,h,vo_format_name(preferred_outfmt));
 
 //    if(!vf) return 1; // temp hack
     
@@ -240,7 +240,7 @@
 	return 0;	// failed
     }
     out_fmt=sh->codec->outfmt[j];
-    mp_msg(MSGT_CPLAYER,MSGL_INFO,"VDec: using %s as output csp (no %d)\n",vo_format_name(out_fmt),j);
+    mp_msg(MSGT_CPLAYER,MSGL_V,"VDec: using %s as output csp (no %d)\n",vo_format_name(out_fmt),j);
     sh->outfmtidx=j;
     sh->vfilter=vf;
 


More information about the MPlayer-dev-eng mailing list