diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-02 18:52:48 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-02 18:52:48 +0000 |
commit | b2164dd21103bc49863789c5f2ccaca1d93755d9 (patch) | |
tree | c56198b67bbd67ed74dfb6aa15396de49c74eb05 /src/flash/flash.c | |
parent | 95c3a1758f78b739aef176d73b376321e5b48b8d (diff) | |
download | openocd_libswd-b2164dd21103bc49863789c5f2ccaca1d93755d9.tar.gz openocd_libswd-b2164dd21103bc49863789c5f2ccaca1d93755d9.tar.bz2 openocd_libswd-b2164dd21103bc49863789c5f2ccaca1d93755d9.tar.xz openocd_libswd-b2164dd21103bc49863789c5f2ccaca1d93755d9.zip |
Rick Altherr <kc8apf@kc8apf.net> - fix flash write_bank output.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1120 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r-- | src/flash/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index 08f3aaff..6d47334b 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -875,7 +875,7 @@ int handle_flash_write_bank_command(struct command_context_s *cmd_ctx, char *cmd fileio_close(&fileio); return retvaltemp; } - if (retval!=ERROR_OK) + if (retval==ERROR_OK) { command_print(cmd_ctx, "wrote %"PRIi64" byte from file %s to flash bank %i at offset 0x%8.8x in %s (%f kb/s)", fileio.size, args[1], strtoul(args[0], NULL, 0), offset, duration_text, |