On 25 February 2012 14:03, Vinson Lee <span dir="ltr"><<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fixes these GCC warnings.<br>
occlusion-query.c: In function ‘draw’:<br>
occlusion-query.c:189: warning: format ‘%lu’ expects type ‘long unsigned<br>
int’, but argument 2 has type ‘uint64_t’<br>
occlusion-query.c:189: warning: format ‘%lu’ expects type ‘long unsigned<br>
int’, but argument 3 has type ‘uint64_t’<br>
occlusion-query.c:189: warning: format ‘%lu’ expects type ‘long unsigned<br>
int’, but argument 2 has type ‘uint64_t’<br>
occlusion-query.c:189: warning: format ‘%lu’ expects type ‘long unsigned<br>
int’, but argument 3 has type ‘uint64_t’<br>
<br>
Signed-off-by: Vinson Lee <<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>><br>
---<br>
src/gallium/tests/graw/occlusion-query.c | 3 ++-<br>
1 files changed, 2 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c<br>
index 5c4bc8c..13285c4 100644<br>
--- a/src/gallium/tests/graw/occlusion-query.c<br>
+++ b/src/gallium/tests/graw/occlusion-query.c<br>
@@ -186,7 +186,8 @@ draw(void)<br>
info.ctx->get_query_result(info.ctx, q1, TRUE, &res1);<br>
info.ctx->get_query_result(info.ctx, q2, TRUE, &res2);<br>
<br>
- printf("result1 = %lu result2 = %lu\n", res1, res2);<br>
+ printf("result1 = %llu result2 = %llu\n",<br>
+ (long long unsigned) res1, (long long unsigned) res2);<br>
if (res1 < expected1_min || res1 > expected1_max)<br>
printf(" Failure: result1 should be near %d\n", expected1);<br>
if (res2 < expected2_min || res2 > expected2_max)<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.8.4<br>
<br></font></span></blockquote><div><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div></div>