Mesa (master): r600g: fix printk warnings

Dave Airlie airlied at kemper.freedesktop.org
Fri Nov 9 20:45:33 UTC 2012


Module: Mesa
Branch: master
Commit: afcaa03f7ea6918ce7a9cab1b02ec97e05309a63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=afcaa03f7ea6918ce7a9cab1b02ec97e05309a63

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Nov 10 06:38:57 2012 +1000

r600g: fix printk warnings

Brian reported seeing:
r600_texture.c: In function ‘r600_texture_create_object’:
r600_texture.c:468:12: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
r600_texture.c:468:12: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
r600_texture.c:485:12: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
r600_texture.c:485:12: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’

this should wrap over them fine.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r600/r600_texture.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index c4d5bb4..4dac440 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -457,8 +457,8 @@ r600_texture_create_object(struct pipe_screen *screen,
 				printf("  Z %i: offset=%llu, slice_size=%llu, npix_x=%u, "
 				       "npix_y=%u, npix_z=%u, nblk_x=%u, nblk_y=%u, "
 				       "nblk_z=%u, pitch_bytes=%u, mode=%u\n",
-				       i, rtex->surface.level[i].offset,
-				       rtex->surface.level[i].slice_size,
+				       i, (unsigned long long)rtex->surface.level[i].offset,
+				       (unsigned long long)rtex->surface.level[i].slice_size,
 				       rtex->surface.level[i].npix_x,
 				       rtex->surface.level[i].npix_y,
 				       rtex->surface.level[i].npix_z,
@@ -474,8 +474,8 @@ r600_texture_create_object(struct pipe_screen *screen,
 				printf("  S %i: offset=%llu, slice_size=%llu, npix_x=%u, "
 				       "npix_y=%u, npix_z=%u, nblk_x=%u, nblk_y=%u, "
 				       "nblk_z=%u, pitch_bytes=%u, mode=%u\n",
-				       i, rtex->surface.stencil_level[i].offset,
-				       rtex->surface.stencil_level[i].slice_size,
+				       i, (unsigned long long)rtex->surface.stencil_level[i].offset,
+				       (unsigned long long)rtex->surface.stencil_level[i].slice_size,
 				       rtex->surface.stencil_level[i].npix_x,
 				       rtex->surface.stencil_level[i].npix_y,
 				       rtex->surface.stencil_level[i].npix_z,




More information about the mesa-commit mailing list