[Mesa-dev] [PATCH 4/8] st/mesa: use PRIu64 for printing 64-bit uints

Brian Paul brianp at vmware.com
Fri Aug 8 14:20:26 PDT 2014


---
 src/mesa/state_tracker/st_cb_bufferobjects.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 3b4d28d..4143dff 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -31,6 +31,8 @@
  */
 
 
+#include <inttypes.h>  /* for PRIu64 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 %" PRIu64 " bind 0x%x\n",
+                   (uint64_t) size, bind);
    }
 
    if (size != 0) {
-- 
1.7.10.4



More information about the mesa-dev mailing list