flash-hmmoduart: show error-status as hex
authorMichael Gernoth <michael@gernoth.net>
Thu, 9 Jun 2016 07:59:40 +0000 (09:59 +0200)
committerMichael Gernoth <michael@gernoth.net>
Thu, 9 Jun 2016 07:59:40 +0000 (09:59 +0200)
flash-hmmoduart.c

index 9f2f29a..fed022b 100644 (file)
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
                } while (pfd < 0);
 
                if (rdata.ack != 0x0401) {
-                       fprintf(stderr, "\n\nError flashing block %d, status: %u\n", block, rdata.ack);
+                       fprintf(stderr, "\n\nError flashing block %d, status: %04x\n", block, rdata.ack);
                        exit(EXIT_FAILURE);
                }
 
Impressum, Datenschutz