From d361c843ec2ea6de9fc8045378210c4af7aa2ae3 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Tue, 25 Aug 2026 20:05:37 +0200 Subject: [PATCH] Fix grammar for single byte errors --- src/avr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/avr.c b/src/avr.c index e5d68ef6..98ba37ac 100644 --- a/src/avr.c +++ b/src/avr.c @@ -1422,8 +1422,8 @@ int avr_verify_mem(const PROGRAMMER *pgm, const AVRPART *p, const AVRPART *v, co } } if(verror) - imsg_info(" %d byte%s do not match caused by %d bit error%s of which %d set and %d cleared on device\n", - verror, str_plural(verror), biterrs, str_plural(biterrs), bitsset, biterrs-bitsset); + imsg_info(" %d byte%s do%s not match caused by %d bit error%s of which %d set and %d cleared on device\n", + verror, str_plural(verror), verror > 1? "": "es", biterrs, str_plural(biterrs), bitsset, biterrs-bitsset); if(verror && bitsset == 0 && mem_is_in_flash(a)) imsg_info(" maybe flash was not erased beforehand or flash programming sections overlap?\n");