From 0a1d4b5e51f7ca9a98385ff638074253c34a4b7f Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Thu, 9 Jun 2016 09:59:40 +0200 Subject: [PATCH 1/1] flash-hmmoduart: show error-status as hex --- flash-hmmoduart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5