Mesa (llvmpipe-rast-64): llvmpipe: fix the int64_t printing warnings
Zack Rusin
zack at kemper.freedesktop.org
Wed Nov 20 03:39:56 UTC 2013
Module: Mesa
Branch: llvmpipe-rast-64
Commit: ac854f29d67a524066ec9921791a132c33b5831f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac854f29d67a524066ec9921791a132c33b5831f
Author: Zack Rusin <zackr at vmware.com>
Date: Tue Nov 19 22:38:28 2013 -0500
llvmpipe: fix the int64_t printing warnings
we need to use the standard defines from inttypes.h in order
to consistently avoid the compile warnings.
---
src/gallium/drivers/llvmpipe/lp_setup_tri.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 62d2855..0062ebb 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -40,6 +40,8 @@
#include "lp_state_setup.h"
#include "lp_context.h"
+#include <inttypes.h>
+
#define NUM_CHANNELS 4
/* TODO */
@@ -497,19 +499,19 @@ do_triangle_ccw(struct lp_setup_context *setup,
#endif
if (0) {
- debug_printf("p0: %16lx/%08x/%08x/%16lx\n",
+ debug_printf("p0: %"PRIx64"/%08x/%08x/%"PRIx64"\n",
plane[0].c,
plane[0].dcdx,
plane[0].dcdy,
plane[0].eo);
- debug_printf("p1: %16lx/%08x/%08x/%16lx\n",
+ debug_printf("p1: %"PRIx64"/%08x/%08x/%"PRIx64"\n",
plane[1].c,
plane[1].dcdx,
plane[1].dcdy,
plane[1].eo);
- debug_printf("p2: %16lx/%08x/%08x/%16lx\n",
+ debug_printf("p2: %"PRIx64"/%08x/%08x/%"PRIx64"\n",
plane[2].c,
plane[2].dcdx,
plane[2].dcdy,
More information about the mesa-commit
mailing list