From cc5c59b3f25dc595ce17a876e89ca549bb477e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Wed, 5 Aug 2009 16:28:10 -0400 Subject: [PATCH] Add the ability to print intermediate CRC values --- test/blitters-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/blitters-test.c b/test/blitters-test.c index 27fa956..350210a 100644 --- a/test/blitters-test.c +++ b/test/blitters-test.c @@ -556,6 +556,7 @@ main (int argc, char *argv[]) { int i, n1 = 1, n2 = 0; uint32_t crc = 0; + int verbose = getenv ("VERBOSE") != NULL; if (argc >= 3) { @@ -582,6 +583,9 @@ main (int argc, char *argv[]) for (i = n1; i <= n2; i++) { crc = test_composite (crc, i, 0); + + if (verbose) + printf ("%d: %08X\n", i, crc); } printf ("crc32=%08X\n", crc);