From 840d6faf687cc9198ea748cfd6e94bcb69ee71ac Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 4 Feb 2013 15:53:07 -0700 Subject: [PATCH] st/mesa: fix debug_printf() format string warning Use %td for ptrdiff_t (aka GLsizeiptrARB). --- src/mesa/state_tracker/st_cb_bufferobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c index d5167352c40..8ff32c84291 100644 --- a/src/mesa/state_tracker/st_cb_bufferobjects.c +++ b/src/mesa/state_tracker/st_cb_bufferobjects.c @@ -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) { -- 2.30.2