[MPlayer-cvslog] r25898 - in trunk/loader: pe_image.c wine/debugtools.h

diego subversion at mplayerhq.hu
Mon Jan 28 09:48:16 CET 2008


Author: diego
Date: Mon Jan 28 09:48:16 2008
New Revision: 25898

Log:
Get rid of redundant dbg_printf redefinition.  Fixes some warnings:
wine/debugtools.h:57: warning: useless type name in empty declaration


Modified:
   trunk/loader/pe_image.c
   trunk/loader/wine/debugtools.h

Modified: trunk/loader/pe_image.c
==============================================================================
--- trunk/loader/pe_image.c	(original)
+++ trunk/loader/pe_image.c	Mon Jan 28 09:48:16 2008
@@ -96,17 +96,17 @@ static void dump_exports( HMODULE hModul
       if (!*function) continue;  
       if (TRACE_ON(win32))
       {
-	DPRINTF( "%4ld %08lx %p", i + pe_exports->Base, *function, RVA(*function) );
+	dbg_printf( "%4ld %08lx %p", i + pe_exports->Base, *function, RVA(*function) );
 	
 	for (j = 0; j < pe_exports->NumberOfNames; j++)
           if (ordinal[j] == i)
           {
-              DPRINTF( "  %s", (char*)RVA(name[j]) );
+              dbg_printf( "  %s", (char*)RVA(name[j]) );
               break;
           }
 	if ((*function >= rva_start) && (*function <= rva_end))
-	  DPRINTF(" (forwarded -> %s)", (char *)RVA(*function));
-	DPRINTF("\n");
+	  dbg_printf(" (forwarded -> %s)", (char *)RVA(*function));
+	dbg_printf("\n");
       }
   }
 }
@@ -484,19 +484,19 @@ HMODULE PE_LoadImage( int handle, LPCSTR
     
     if ( nt->FileHeader.Machine != IMAGE_FILE_MACHINE_I386 )
     {
-        MESSAGE("Trying to load PE image for unsupported architecture (");
+        dbg_printf("Trying to load PE image for unsupported architecture (");
         switch (nt->FileHeader.Machine)
         {
-        case IMAGE_FILE_MACHINE_UNKNOWN: MESSAGE("Unknown"); break;
-        case IMAGE_FILE_MACHINE_I860:    MESSAGE("I860"); break;
-        case IMAGE_FILE_MACHINE_R3000:   MESSAGE("R3000"); break;
-        case IMAGE_FILE_MACHINE_R4000:   MESSAGE("R4000"); break;
-        case IMAGE_FILE_MACHINE_R10000:  MESSAGE("R10000"); break;
-        case IMAGE_FILE_MACHINE_ALPHA:   MESSAGE("Alpha"); break;
-        case IMAGE_FILE_MACHINE_POWERPC: MESSAGE("PowerPC"); break;
-        default: MESSAGE("Unknown-%04x", nt->FileHeader.Machine); break;
+        case IMAGE_FILE_MACHINE_UNKNOWN: dbg_printf("Unknown"); break;
+        case IMAGE_FILE_MACHINE_I860:    dbg_printf("I860"); break;
+        case IMAGE_FILE_MACHINE_R3000:   dbg_printf("R3000"); break;
+        case IMAGE_FILE_MACHINE_R4000:   dbg_printf("R4000"); break;
+        case IMAGE_FILE_MACHINE_R10000:  dbg_printf("R10000"); break;
+        case IMAGE_FILE_MACHINE_ALPHA:   dbg_printf("Alpha"); break;
+        case IMAGE_FILE_MACHINE_POWERPC: dbg_printf("PowerPC"); break;
+        default: dbg_printf("Unknown-%04x", nt->FileHeader.Machine); break;
         }
-        MESSAGE(")\n");
+        dbg_printf(")\n");
         goto error;
     }
 

Modified: trunk/loader/wine/debugtools.h
==============================================================================
--- trunk/loader/wine/debugtools.h	(original)
+++ trunk/loader/wine/debugtools.h	Mon Jan 28 09:48:16 2008
@@ -53,12 +53,6 @@ extern int dbg_vprintf( const char *form
 static inline LPCSTR debugstr_a( LPCSTR s )  { return debugstr_an( s, 80 ); }
 static inline LPCSTR debugstr_w( LPCWSTR s ) { return debugstr_wn( s, 80 ); }
 
-#ifdef __GNUC__
-extern int dbg_printf(const char *format, ...) __attribute__((format (printf,1,2)));
-#else
-extern int dbg_printf(const char *format, ...);
-#endif
-
 #define TRACE_(X) TRACE
 #define WARN_(X) TRACE
 #define WARN TRACE
@@ -75,7 +69,4 @@ extern int dbg_printf(const char *format
 #define DEFAULT_DEBUG_CHANNEL(ch) \
     extern char dbch_##ch[]; static char * const __dbch_default = dbch_##ch;
 
-#define DPRINTF dbg_printf
-#define MESSAGE dbg_printf
-
 #endif  /* WINE_DEBUGTOOLS_H */



More information about the MPlayer-cvslog mailing list