From: Jan Michel Date: Fri, 22 Dec 2017 16:15:41 +0000 (+0100) Subject: fix error message X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=840a33e1f69f6b57cb2b758dfdd1f26fff7c462b;p=trbnettools.git fix error message --- 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; }