From 840a33e1f69f6b57cb2b758dfdd1f26fff7c462b Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 22 Dec 2017 17:15:41 +0100 Subject: [PATCH] fix error message --- libtrbnet/trbflash.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 8fade2c..3766211 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -854,7 +854,12 @@ static int programImageBuffer(uint16_t trb_address, c = getc(stdin); if (!((c == 'Y') || (c == 'y'))) { - fprintf(stdout, "\nAborting on user request\n"); + if(c== 'z') { + fprintf(stdout, "\nAborting because user can't tell a 'y' from a 'z'\n"); + } + else { + fprintf(stdout, "\nAborting on user request\n"); + } fflush(stdout); return -1; } -- 2.43.0