Correct plural for message writing %d bytes in term.c

This commit is contained in:
Stefan Rueger 2022-10-26 08:42:03 +01:00
parent 418cf08e84
commit a1018999c4
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 2 additions and 2 deletions

View File

@ -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");