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 6de97a7..607dfe9 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;
     }