From a1018999c4482dc5e28620d8ad932b57c4fd4c57 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Wed, 26 Oct 2022 08:42:03 +0100 Subject: [PATCH] Correct plural for message writing %d bytes in term.c --- src/term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/term.c b/src/term.c index cd0cdc16..bd4e57b1 100644 --- a/src/term.c +++ b/src/term.c @@ -651,8 +651,8 @@ static int cmd_write(PROGRAMMER *pgm, AVRPART *p, int argc, char *argv[]) { if(data.str_ptr) free(data.str_ptr); - pmsg_notice2("(write) writing %d bytes starting from address 0x%02lx", - len + data.bytes_grown, (long) addr); + pmsg_notice2("(write) writing %d byte%s starting from address 0x%02lx", + len + data.bytes_grown, update_plural(len + data.bytes_grown), (long) addr); if (write_mode == WRITE_MODE_FILL) msg_notice2("; remaining space filled with %s", argv[argc - 2]); msg_notice2("\n");