gallium/radeon: use PRIX64 instead of PRIu64
authorChristian König <christian.koenig@amd.com>
Sun, 6 Jul 2014 10:29:00 +0000 (12:29 +0200)
committerChristian König <christian.koenig@amd.com>
Sun, 6 Jul 2014 11:28:04 +0000 (13:28 +0200)
We want hex values here, not decimals.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/r600_texture.c

index 805756f6cf1d8c4d20cac865cf8d3647abce90e9..0eaa817aee8fc1a6d99e56503b78ebdf7067ffbc 100644 (file)
@@ -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);
index a20b0c8dc9b8590e5fbe245cd56cc56078dc79b8..bfda69e60948e1a2ffd9ddf8abbcec8cd55e9282 100644 (file)
@@ -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,