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);
}