From b2164dd21103bc49863789c5f2ccaca1d93755d9 Mon Sep 17 00:00:00 2001 From: oharboe Date: Sun, 2 Nov 2008 18:52:48 +0000 Subject: [PATCH] Rick Altherr - fix flash write_bank output. git-svn-id: svn://svn.berlios.de/openocd/trunk@1120 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flash/flash.c b/src/flash/flash.c index 08f3aaff5..6d47334b9 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,