[Mesa-dev] [PATCH] vbo: fix format string compiler warning for 32-bit machines

Brian Paul brianp at vmware.com
Tue Aug 2 15:52:19 UTC 2016


On 08/02/2016 08:40 AM, Jan Ziak wrote:
> Signed-off-by: Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail.com>
> ---
>   src/mesa/vbo/vbo_exec_array.c | 11 ++++++-----
>   1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
> index f371890..ae6a3da 100644
> --- a/src/mesa/vbo/vbo_exec_array.c
> +++ b/src/mesa/vbo/vbo_exec_array.c
> @@ -1681,8 +1681,9 @@ vbo_exec_MultiDrawArraysIndirectCount(GLenum mode,
>      if (MESA_VERBOSE & VERBOSE_DRAW)
>         _mesa_debug(ctx, "glMultiDrawArraysIndirectCountARB"
>                     "(%s, %lx, %lx, %i, %i)\n",
> -                  _mesa_enum_to_string(mode), indirect,
> -                  drawcount, maxdrawcount, stride);
> +                  _mesa_enum_to_string(mode),
> +                  (unsigned long)indirect, (unsigned long)drawcount,
> +                  maxdrawcount, stride);
>
>      /* If <stride> is zero, the array elements are treated as tightly packed. */
>      if (stride == 0)
> @@ -1709,9 +1710,9 @@ vbo_exec_MultiDrawElementsIndirectCount(GLenum mode, GLenum type,
>      if (MESA_VERBOSE & VERBOSE_DRAW)
>         _mesa_debug(ctx, "glMultiDrawElementsIndirectCountARB"
>                     "(%s, %s, %lx, %lx, %i, %i)\n",
> -                  _mesa_enum_to_string(mode),
> -                  _mesa_enum_to_string(type), indirect,
> -                  drawcount, maxdrawcount, stride);
> +                  _mesa_enum_to_string(mode), _mesa_enum_to_string(type),
> +                  (unsigned long)indirect, (unsigned long)drawcount,
> +                  maxdrawcount, stride);
>
>      /* If <stride> is zero, the array elements are treated as tightly packed. */
>      if (stride == 0)


Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list