- if ( chk1 != calc1 ) printf("checksum 1 failed %x - %x\n", chk1, calc1);
- if ( chk2 != calc2 ) printf("checksum 2 failed %x - %x\n", chk2, calc2);
+ if ( chk1 != calc1 ) {
+ printf("checksum 1 failed %x - %x\n", chk1, calc1);
+ return 0;
+ }
+ if ( chk2 != calc2 ) {
+ printf("checksum 2 failed %x - %x\n", chk2, calc2);
+ return 0;
+ }