r300: Make format names legible.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 24 Jan 2009 12:11:03 +0000 (04:11 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 2 Feb 2009 07:30:28 +0000 (23:30 -0800)
src/gallium/drivers/r300/r300_screen.c

index 6de97a79e163e64c0df7d1648a849801edcd51b9..607dfe911c69314aa5d936d8381c6bb062f0c51e 100644 (file)
@@ -184,8 +184,8 @@ static boolean check_tex_2d_format(enum pipe_format format)
         case PIPE_FORMAT_I8_UNORM:
             return TRUE;
         default:
-            debug_printf("r300: Warning: Got unknown format: %d, in %s\n",
-                format, __FUNCTION__);
+            debug_printf("r300: Warning: Got unknown format: %s, in %s\n",
+                pf_name(format), __FUNCTION__);
             break;
     }