drivers/jtag: usb_blaster: make command handlers more strict
commitb27c53354d35a273aa1dc4283463cbdec8981632
authorAntony Pavlov <antonynpavlov@gmail.com>
Sat, 8 Feb 2014 20:11:42 +0000 (9 00:11 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 24 Feb 2014 12:09:15 +0000 (24 12:09 +0000)
treed9c5707a4b7bf3ec75373b8ff9be0ec0e9919e4e
parent7e4fb975597854b6889938facdf43d8e52505566
drivers/jtag: usb_blaster: make command handlers more strict

If user used wrong argument number for some usb_blaster_* commands
then openocd show just warning message.
This commit makes command handler's behaviour more strict and
openocd treats wrong argument number as an error.

In addition we already have 'help' and 'usage' information in
struct command_registration ublast_command_handlers[],
so we can drop redundancy messages in command handlers.

Change-Id: I73b8c75ec60a18e5258a4bdffe972e8a1afc1066
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Reviewed-on: http://openocd.zylin.com/1942
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/usb_blaster/usb_blaster.c