From: Michael Gernoth Date: Thu, 9 Jun 2016 07:59:40 +0000 (+0200) Subject: flash-hmmoduart: show error-status as hex X-Git-Tag: v0.103~4 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/0a1d4b5e51f7ca9a98385ff638074253c34a4b7f?ds=sidebyside;hp=853cbce9b9a23201a048934b004ac04643f9c895 flash-hmmoduart: show error-status as hex --- diff --git a/flash-hmmoduart.c b/flash-hmmoduart.c index 9f2f29a..fed022b 100644 --- a/flash-hmmoduart.c +++ b/flash-hmmoduart.c @@ -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); }