Sometime in the past, nand_fileio_finish started to return ERROR_OK (with
the value of zero) on success. One case this was not updated, see the
attached patch.
Stian Skjelstad
diff -ur openocd-0.5.0/src/flash/nand/tcl.c openocd-0.5.0-nand-write-message/src/flash/nand/tcl.c
--- openocd-0.5.0/src/flash/nand/tcl.c 2011-08-09 07:34:19.000000000 +0200
+++ openocd-0.5.0-nand-write-message/src/flash/nand/tcl.c 2012-02-18 10:47:54.097362747 +0100
@@ -282,7 +282,7 @@
s.address += s.page_size;
}
- if (nand_fileio_finish(&s))
+ if (nand_fileio_finish(&s) == ERROR_OK)
{
command_print(CMD_CTX, "wrote file %s to NAND flash %s up to "
"offset 0x%8.8" PRIx32 " in %fs (%0.3f KiB/s)",
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel