[Piglit] [PATCH] crossbar: Fix printf format warning.

Vinson Lee vlee at freedesktop.org
Sat Jan 14 23:22:41 PST 2012


Fix this GCC warning.
crossbar.c:246:7: warning: format ‘%u’ expects argument of type
‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat]

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/texturing/crossbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/texturing/crossbar.c b/tests/texturing/crossbar.c
index bc23ed0..e404bff 100644
--- a/tests/texturing/crossbar.c
+++ b/tests/texturing/crossbar.c
@@ -243,7 +243,7 @@ static void Init( void )
    }
 
    if (Interactive)
-      printf("\nAll %u squares should be the same color.\n", NUM_TESTS + 1);
+      printf("\nAll %lu squares should be the same color.\n", (unsigned long) NUM_TESTS + 1);
 
    (void) memset( temp, 0x00, sizeof( temp ) );
    glBindTexture( GL_TEXTURE_2D, 1 );
-- 
1.7.8.3



More information about the Piglit mailing list