The command "flash bank" has updated syntax.
Add the mandatory parameter <target> to the usage message
that prints in case of error.

Best Regards
Antonio Borneo
From 0d1b4f731b65be709091f9a9e406f7d6350595e4 Mon Sep 17 00:00:00 2001
From: Antonio Borneo <borneo.anto...@gmail.com>
Date: Fri, 26 Mar 2010 15:54:33 +0800
Subject: [PATCH] NOR TCL: fix usage message

The command "flash bank" has updated syntax.
Add the mandatory parameter <target> to the usage message
that prints in case of error.

Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>
---
 src/flash/nor/tcl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index 38cb655..fc7169f 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -789,7 +789,7 @@ COMMAND_HANDLER(handle_flash_bank_command)
 	if (CMD_ARGC < 7)
 	{
 		LOG_ERROR("usage: flash bank <name> <driver> "
-				"<base> <size> <chip_width> <bus_width>");
+				"<base> <size> <chip_width> <bus_width> <target>");
 		return ERROR_COMMAND_SYNTAX_ERROR;
 	}
 	// save bank name and advance arguments for compatibility
-- 
1.5.2.2

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

Reply via email to