One instance of "small page" should have been "large page".
And the message about write completion says "wrote file <x>
on NAND flash <y> at offset <z>.  But <z> at that point is
the final offset and not the one that was provided. Displaying
the start offset is not that useful as by providing it we know
what it is already. So let's change the message a bit to better
indicate this is the end offset.
---
 src/flash/nand.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/flash/nand.c b/src/flash/nand.c
index 7f91407..2344ede 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -530,7 +530,7 @@ int nand_probe(struct nand_device_s *device)
                        device->address_cycles = 5;
                else
                {
-                       LOG_ERROR("BUG: small page NAND device with more than 
32 GiB encountered");
+                       LOG_ERROR("BUG: large page NAND device with more than 
32 GiB encountered");
                        device->address_cycles = 6;
                }
        }
@@ -1345,7 +1345,7 @@ int handle_nand_write_command(struct command_context_s 
*cmd_ctx, char *cmd, char
                oob = NULL;
                page = NULL;
                duration_stop_measure(&duration, &duration_text);
-               command_print(cmd_ctx, "wrote file %s to NAND flash %s at 
offset 0x%8.8x in %s",
+               command_print(cmd_ctx, "wrote file %s to NAND flash %s up to 
offset 0x%8.8x in %s",
                        args[1], args[0], offset, duration_text);
                free(duration_text);
                duration_text = NULL;
-- 
1.6.2-rc2.GIT

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to