diff options
author | Brian Paul <brianp@vmware.com> | 2012-12-03 08:37:10 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-12-03 20:55:17 -0700 |
commit | 4d2f04cd6cb2fbaee54ab6e0f84cdb576ceeadcd (patch) | |
tree | 80c368a75cd8f16d38306b75de56f30cdb1f4132 /src/mesa/main/syncobj.c | |
parent | 32c6db3978e89e61660d9479d7548cb7a5e04ba2 (diff) | |
download | external_mesa3d-4d2f04cd6cb2fbaee54ab6e0f84cdb576ceeadcd.zip external_mesa3d-4d2f04cd6cb2fbaee54ab6e0f84cdb576ceeadcd.tar.gz external_mesa3d-4d2f04cd6cb2fbaee54ab6e0f84cdb576ceeadcd.tar.bz2 |
mesa: fix uint64 printing in syncobj.c
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>
Diffstat (limited to 'src/mesa/main/syncobj.c')
-rw-r--r-- | src/mesa/main/syncobj.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index 745e982..cc541c8 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -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; } |