aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/kwboot.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/kwboot.c b/tools/kwboot.c
index dfac8ae..1dcec19 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -975,8 +975,12 @@ kwboot_xm_sendblock(int fd, struct kwboot_block *block, int allow_non_xm,
if (rc)
goto err;
- if (!allow_non_xm && c != ACK)
- kwboot_progress(-1, '+');
+ if (!allow_non_xm && c != ACK) {
+ if (c == NAK && allow_retries && retries + 1 < 16)
+ kwboot_progress(-1, '+');
+ else
+ kwboot_progress(-1, 'E');
+ }
} while (c == NAK && allow_retries && retries++ < 16);
if (non_xm_print)