authorNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 10 Mar 2015 20:44:49 +0000 (21:44 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 10 Mar 2015 20:44:49 +0000 (21:44 +0100)
prog_commands.c

index cf80f8b..c1441d7 100644 (file)
@@ -239,7 +239,7 @@ int flash_target(struct part_desc* part, char* filename, int calc_user_code)
        if (calc_user_code == 1) {
                v[7] = cksum;
        } else if (cksum != v[7]) {
-               printf("Checksum is 0x%08x, should be 0x%08x\n", cksum, v[7]);
+               printf("Checksum is 0x%08x, should be 0x%08x\n", v[7], cksum);
                free(data);
                return -5;
        }