From: Marek Olšák Date: Sat, 9 Aug 2014 21:48:41 +0000 (+0200) Subject: winsys/radeon: fix compile warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1843a2d2a7a332511629aa8b9dab8168cde9031;p=mesa.git winsys/radeon: fix compile warnings --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs_dump.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs_dump.c index c2c0dab3466..8d67918ce72 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs_dump.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs_dump.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include "radeon_drm_cs.h" #include "radeon_drm_bo.h" @@ -101,7 +102,7 @@ void radeon_dump_cs_on_lockup(struct radeon_drm_cs *cs, struct radeon_cs_context for (j = 0; j < ndw; j++) { if (j && !(j % 8)) { uint32_t offset = (j - 8) << 2; - fprintf(dump, " /* [0x%08x] va[0x%016llx] */\n ", offset, offset + csc->relocs_bo[i]->va); + fprintf(dump, " /* [0x%08x] va[0x%016"PRIx64"] */\n ", offset, offset + csc->relocs_bo[i]->va); } fprintf(dump, " 0x%08x,", ptr[j]); } @@ -143,10 +144,10 @@ void radeon_dump_cs_on_lockup(struct radeon_drm_cs *cs, struct radeon_cs_context ptr = radeon_bo_do_map(csc->relocs_bo[i]); if (ptr) { - fprintf(dump, " bo[%d] = bo_new(&ctx, %d, bo_%04d_data, 0x%016llx, 0x%08x);\n", + fprintf(dump, " bo[%d] = bo_new(&ctx, %d, bo_%04d_data, 0x%016"PRIx64", 0x%08x);\n", i, ndw, i, csc->relocs_bo[i]->va, csc->relocs_bo[i]->base.alignment); } else { - fprintf(dump, " bo[%d] = bo_new(&ctx, %d, NULL, 0x%016llx, 0x%08x);\n", + fprintf(dump, " bo[%d] = bo_new(&ctx, %d, NULL, 0x%016"PRIx64", 0x%08x);\n", i, ndw, csc->relocs_bo[i]->va, csc->relocs_bo[i]->base.alignment); } }