From 5c0e8efa051f4e266add8b3685020970fe394a4c Mon Sep 17 00:00:00 2001 From: ntfreak Date: Tue, 19 Feb 2008 19:26:17 +0000 Subject: =?UTF-8?q?-=20Fixed=20bug=20in=20pathmove=20for=20XScale=20-=20ad?= =?UTF-8?q?ded=20virtual=20address=20to=20working=5Farea.=20-=20Improved?= =?UTF-8?q?=20error=20messages=20in=20a=20number=20of=20places=20-=20Added?= =?UTF-8?q?=20ERROR=5FCOMMAND=5FSYNTAX=5FERROR=20that=20commands=20can=20r?= =?UTF-8?q?eturn=20to=20have=20syntax=20printed=20-=20Added=20help=20for?= =?UTF-8?q?=20some=20config=20commands=20-=20Added=20verification=20of=20s?= =?UTF-8?q?w=20breakpoints=20with=20ERROR()=20message=20-=20Removed=20a=20?= =?UTF-8?q?couple=20of=20exit()'s=20and=20replaced=20with=20error=20messag?= =?UTF-8?q?e=20-=20cosmetic=20fix=20to=20armv4=5F5.c,=20easier=20to=20read?= =?UTF-8?q?=20-=20added=20polymorphic(with=20default)=20virt2phys=20and=20?= =?UTF-8?q?mmu=20enable=20query=20function=20to=20target.h=20-=20added=20v?= =?UTF-8?q?irt2phys=20command=20that=20uses=20target->type->virt2phys()=20?= =?UTF-8?q?fn=20Thanks=20to=20=C3=98yvind=20Harboe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.berlios.de/openocd/trunk@310 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/flash') diff --git a/src/flash/flash.c b/src/flash/flash.c index cae099b..dc87f5d 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -87,7 +87,7 @@ int flash_register_commands(struct command_context_s *cmd_ctx) { flash_cmd = register_command(cmd_ctx, NULL, "flash", NULL, COMMAND_ANY, NULL); - register_command(cmd_ctx, flash_cmd, "bank", handle_flash_bank_command, COMMAND_CONFIG, NULL); + register_command(cmd_ctx, flash_cmd, "bank", handle_flash_bank_command, COMMAND_CONFIG, "flash_bank [driver_options ...]"); register_command(cmd_ctx, flash_cmd, "auto_erase", handle_flash_auto_erase_command, COMMAND_ANY, "auto erase flash sectors "); return ERROR_OK; @@ -160,8 +160,6 @@ flash_bank_t *get_flash_bank_by_num(int num) return p; } -/* flash_bank [driver_options ...] - */ int handle_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { int i; @@ -170,9 +168,7 @@ int handle_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char if (argc < 6) { - WARNING("incomplete flash_bank configuration"); - WARNING("flash_bank [driver_options ...]"); - return ERROR_OK; + return ERROR_COMMAND_SYNTAX_ERROR; } if ((target = get_target_by_num(strtoul(args[5], NULL, 0))) == NULL) -- cgit v1.1