]> git.zerfleddert.de Git - rsbs2/commitdiff
print info if checksum is correct
authorMichael Gernoth <michael@gernoth.net>
Wed, 28 Jan 2009 12:36:36 +0000 (13:36 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 28 Jan 2009 12:36:36 +0000 (13:36 +0100)
firmware.c

index 67f1f0a894ceba5912da60c73617f9bea9be2505..7e5e112018e5c8d05c560f16deeb3372a45d0e99 100644 (file)
@@ -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);
 }
Impressum, Datenschutz