summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-26 10:24:39 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-26 10:24:39 -0800
commitdf58812b528c9b7857d8bde8f3eea4ad46ed034f (patch)
treea86579a49e665cfedbc53aff5c2c4403ba8c3e51
parent396b0f3012955f21d7932d958fc7547532cdc90a (diff)
downloadopenocd+libswd-df58812b528c9b7857d8bde8f3eea4ad46ed034f.tar.gz
openocd+libswd-df58812b528c9b7857d8bde8f3eea4ad46ed034f.tar.bz2
openocd+libswd-df58812b528c9b7857d8bde8f3eea4ad46ed034f.tar.xz
openocd+libswd-df58812b528c9b7857d8bde8f3eea4ad46ed034f.zip
NOR: messaging fix
Fix syntax error: default to "wrote N bytes"; writing a single byte is an unusual case, not the normal one.
-rw-r--r--src/flash/nor/tcl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index b5e1b2ce..1097bdf8 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -439,7 +439,7 @@ COMMAND_HANDLER(handle_flash_write_image_command)
if ((ERROR_OK == retval) && (duration_measure(&bench) == ERROR_OK))
{
- command_print(CMD_CTX, "wrote %" PRIu32 " byte from file %s "
+ command_print(CMD_CTX, "wrote %" PRIu32 " bytes from file %s "
"in %fs (%0.3f kb/s)", written, CMD_ARGV[0],
duration_elapsed(&bench), duration_kbps(&bench, written));
}
@@ -625,7 +625,7 @@ COMMAND_HANDLER(handle_flash_write_bank_command)
if ((ERROR_OK == retval) && (duration_measure(&bench) == ERROR_OK))
{
- command_print(CMD_CTX, "wrote %zu byte from file %s to flash bank %u"
+ command_print(CMD_CTX, "wrote %zu bytes from file %s to flash bank %u"
" at offset 0x%8.8" PRIx32 " in %fs (%0.3f kb/s)",
fileio.size, CMD_ARGV[1], p->bank_number, offset,
duration_elapsed(&bench), duration_kbps(&bench, fileio.size));