diff options
Diffstat (limited to 'src/pld')
-rw-r--r-- | src/pld/pld.c | 6 | ||||
-rw-r--r-- | src/pld/virtex2.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/pld/pld.c b/src/pld/pld.c index 90067e3..b262361 100644 --- a/src/pld/pld.c +++ b/src/pld/pld.c @@ -63,8 +63,7 @@ COMMAND_HANDLER(handle_pld_device_command) if (CMD_ARGC < 1) { - LOG_WARNING("incomplete 'pld device' command"); - return ERROR_OK; + return ERROR_COMMAND_SYNTAX_ERROR; } for (i = 0; pld_drivers[i]; i++) @@ -155,8 +154,7 @@ COMMAND_HANDLER(handle_pld_load_command) if (CMD_ARGC < 2) { - command_print(CMD_CTX, "usage: pld load <device#> <file>"); - return ERROR_OK; + return ERROR_COMMAND_SYNTAX_ERROR; } unsigned dev_id; diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index fdaeb61..f4aed34 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -179,8 +179,7 @@ COMMAND_HANDLER(virtex2_handle_read_stat_command) if (CMD_ARGC < 1) { - command_print(CMD_CTX, "usage: virtex2 read_stat <num>"); - return ERROR_OK; + return ERROR_COMMAND_SYNTAX_ERROR; } unsigned dev_id; @@ -207,8 +206,7 @@ PLD_DEVICE_COMMAND_HANDLER(virtex2_pld_device_command) if (CMD_ARGC < 2) { - LOG_WARNING("incomplete pld device 'virtex2' configuration"); - return ERROR_PLD_DEVICE_INVALID; + return ERROR_COMMAND_SYNTAX_ERROR; } tap = jtag_tap_by_string(CMD_ARGV[1]); |