[Mesa-dev] [PATCH] mesa: fix uint64 printing in syncobj.c

Ian Romanick idr at freedesktop.org
Mon Dec 3 09:58:09 PST 2012


On 12/03/2012 07:37 AM, Brian Paul wrote:
> From: Brian Paul <brianp at vmware.com>
>
> To silence printf format warnings.
> ---
>   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..5ecbbd9 100644
> --- a/src/mesa/main/syncobj.c
> +++ b/src/mesa/main/syncobj.c
> @@ -55,6 +55,7 @@
>    * \author Ian Romanick <ian.d.romanick at 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=%" PRIx64 ")",

I think we still want the 0x prefix, right?

> +                  (uint64_t) timeout);
>         return;
>      }
>
>



More information about the mesa-dev mailing list