[Mesa-dev] [PATCH] gallium/radeon: use PRIX64 instead of PRIu64

Marek Olšák maraeo at gmail.com
Sun Jul 6 04:19:25 PDT 2014


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Jul 6, 2014 at 12:31 PM, Christian König
<deathsimple at vodafone.de> wrote:
> From: Christian König <christian.koenig at amd.com>
>
> We want hex values here, not decimals.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
>  src/gallium/drivers/radeon/r600_buffer_common.c | 2 +-
>  src/gallium/drivers/radeon/r600_texture.c       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c
> index 805756f..0eaa817 100644
> --- a/src/gallium/drivers/radeon/r600_buffer_common.c
> +++ b/src/gallium/drivers/radeon/r600_buffer_common.c
> @@ -157,7 +157,7 @@ bool r600_init_resource(struct r600_common_screen *rscreen,
>         util_range_set_empty(&res->valid_buffer_range);
>
>         if (rscreen->debug_flags & DBG_VM && res->b.b.target == PIPE_BUFFER) {
> -               fprintf(stderr, "VM start=0x%"PRIu64"  end=0x%"PRIu64" | Buffer %u bytes\n",
> +               fprintf(stderr, "VM start=0x%"PRIX64"  end=0x%"PRIX64" | Buffer %u bytes\n",
>                         r600_resource_va(&rscreen->b, &res->b.b),
>                         r600_resource_va(&rscreen->b, &res->b.b) + res->buf->size,
>                         res->buf->size);
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index a20b0c8..bfda69e 100644
> --- a/src/gallium/drivers/radeon/r600_texture.c
> +++ b/src/gallium/drivers/radeon/r600_texture.c
> @@ -666,7 +666,7 @@ r600_texture_create_object(struct pipe_screen *screen,
>         rtex->cmask.base_address_reg = (va + rtex->cmask.offset) >> 8;
>
>         if (rscreen->debug_flags & DBG_VM) {
> -               fprintf(stderr, "VM start=0x%"PRIu64"  end=0x%"PRIu64" | Texture %ix%ix%i, %i levels, %i samples, %s\n",
> +               fprintf(stderr, "VM start=0x%"PRIX64"  end=0x%"PRIX64" | Texture %ix%ix%i, %i levels, %i samples, %s\n",
>                         r600_resource_va(screen, &rtex->resource.b.b),
>                         r600_resource_va(screen, &rtex->resource.b.b) + rtex->resource.buf->size,
>                         base->width0, base->height0, util_max_layer(base, 0)+1, base->last_level+1,
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list