From 4d2f04cd6cb2fbaee54ab6e0f84cdb576ceeadcd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 3 Dec 2012 08:37:10 -0700 Subject: [PATCH] mesa: fix uint64 printing in syncobj.c To silence printf format warnings. v2: insert "0x" prefix Reviewed-by: Ian Romanick Reviewed-by: Chad Versace --- src/mesa/main/syncobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 745e982ad48..cc541c83496 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -55,6 +55,7 @@ * \author Ian Romanick */ +#include #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; } -- 2.30.2