[PATCH 6/8] wined3d: Don't print format IDs in decimal.

Henri Verbeet hverbeet at codeweavers.com
Tue Aug 17 12:03:26 CDT 2010


This is especially silly for FOURCC formats.
---
 dlls/wined3d/utils.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 8396513..086350f 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -1542,7 +1542,7 @@ const struct wined3d_format_desc *getFormatDescEntry(WINED3DFORMAT fmt, const st
     int idx = getFmtIdx(fmt);
 
     if(idx == -1) {
-        FIXME("Can't find format %s(%d) in the format lookup table\n", debug_d3dformat(fmt), fmt);
+        FIXME("Can't find format %s (%#x) in the format lookup table\n", debug_d3dformat(fmt), fmt);
         /* Get the caller a valid pointer */
         idx = getFmtIdx(WINED3DFMT_UNKNOWN);
     }
@@ -1719,10 +1719,10 @@ const char* debug_d3dformat(WINED3DFORMAT fmt) {
       fourcc[2] = (char)(fmt >> 16);
       fourcc[3] = (char)(fmt >> 24);
       fourcc[4] = 0;
-      if( isprint(fourcc[0]) && isprint(fourcc[1]) && isprint(fourcc[2]) && isprint(fourcc[3]) )
-        FIXME("Unrecognized %u (as fourcc: %s) WINED3DFORMAT!\n", fmt, fourcc);
+      if (isprint(fourcc[0]) && isprint(fourcc[1]) && isprint(fourcc[2]) && isprint(fourcc[3]))
+        FIXME("Unrecognized %#x (as fourcc: %s) WINED3DFORMAT!\n", fmt, fourcc);
       else
-        FIXME("Unrecognized %u WINED3DFORMAT!\n", fmt);
+        FIXME("Unrecognized %#x WINED3DFORMAT!\n", fmt);
     }
     return "unrecognized";
   }
-- 
1.7.1




More information about the wine-patches mailing list