From 7c86ed4ab81f116dd718e27057e733e749fb2445 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 28 Jan 2009 13:36:36 +0100 Subject: [PATCH] print info if checksum is correct --- firmware.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware.c b/firmware.c index 67f1f0a..7e5e112 100644 --- a/firmware.c +++ b/firmware.c @@ -52,7 +52,10 @@ int main(int argc, char **argv) ret = rsb_crc2(fw, statbuf.st_size, 0x55335053, &crc); oldcrc = (unsigned int)*((unsigned int*)(fw + statbuf.st_size - 4)); - printf("Checksum: 0x%08x, should be: 0x%08x\n", crc, oldcrc); + printf("Checksum: 0x%08x (%s), should be: 0x%08x\n", + crc, + (ret ? "NOT OK" : "OK"), + oldcrc); exit(0); } -- 2.39.5