st/mesa: use PRId64 for printing 64-bit ints
authorBrian Paul <brianp@vmware.com>
Fri, 8 Aug 2014 13:51:47 +0000 (07:51 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 11 Aug 2014 15:44:50 +0000 (09:44 -0600)
v2: use signed types/formats

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_cb_bufferobjects.c

index 3b4d28d47cf8f870a6097863d163dc9fa38666eb..e0cb979f2313dcfa8b01540857e0ebbcb2fe2ef0 100644 (file)
@@ -31,6 +31,8 @@
  */
 
 
+#include <inttypes.h>  /* for PRId64 macro */
+
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "main/arrayobj.h"
@@ -271,7 +273,8 @@ st_bufferobj_data(struct gl_context *ctx,
    pipe_resource_reference( &st_obj->buffer, NULL );
 
    if (ST_DEBUG & DEBUG_BUFFER) {
-      debug_printf("Create buffer size %td bind 0x%x\n", size, bind);
+      debug_printf("Create buffer size %" PRId64 " bind 0x%x\n",
+                   (int64_t) size, bind);
    }
 
    if (size != 0) {