mesa: fix uint64 printing in syncobj.c
authorBrian Paul <brianp@vmware.com>
Mon, 3 Dec 2012 15:37:10 +0000 (08:37 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Dec 2012 03:55:17 +0000 (20:55 -0700)
To silence printf format warnings.

v2: insert "0x" prefix

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/main/syncobj.c

index 745e982ad48936c93f51d3aea5f81bddd6c0a4ed..cc541c83496a1cee8999febbf2c81e5f86d641c0 100644 (file)
@@ -55,6 +55,7 @@
  * \author Ian Romanick <ian.d.romanick@intel.com>
  */
 
+#include <inttypes.h>
 #include "glheader.h"
 #include "imports.h"
 #include "context.h"
@@ -357,7 +358,8 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
    }
 
    if (timeout != GL_TIMEOUT_IGNORED) {
-      _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync(timeout=0x%lx)", timeout);
+      _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync(timeout=0x%" PRIx64 ")",
+                  (uint64_t) timeout);
       return;
    }