st/mesa: fix debug_printf() format string warning
authorBrian Paul <brianp@vmware.com>
Mon, 4 Feb 2013 22:53:07 +0000 (15:53 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 23 Feb 2013 15:20:36 +0000 (08:20 -0700)
Use %td for ptrdiff_t (aka GLsizeiptrARB).

src/mesa/state_tracker/st_cb_bufferobjects.c

index d516735..8ff32c8 100644 (file)
@@ -232,7 +232,7 @@ st_bufferobj_data(struct gl_context *ctx,
    pipe_resource_reference( &st_obj->buffer, NULL );
 
    if (ST_DEBUG & DEBUG_BUFFER) {
-      debug_printf("Create buffer size %lu bind 0x%x\n", size, bind);
+      debug_printf("Create buffer size %td bind 0x%x\n", size, bind);
    }
 
    if (size != 0) {