summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-08-05 16:28:10 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-08-08 18:50:42 -0400
commitcc5c59b3f25dc595ce17a876e89ca549bb477e46 (patch)
tree4922cee0e04b48f3de2b145e36fc62d2967d310b /test
parent0bc4adae3eb758a2cd9026397c284bd6cc7bcd65 (diff)
Add the ability to print intermediate CRC values
Diffstat (limited to 'test')
-rw-r--r--test/blitters-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/blitters-test.c b/test/blitters-test.c
index 27fa9560..350210a9 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);