X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/04f849375f8277203eddbeac2bfbfbfc433bbacf..976db69ffa80c4d499e53f6f22c26d784fdac0a1:/include/command.h diff --git a/include/command.h b/include/command.h index 614d527..6109f9f 100644 --- a/include/command.h +++ b/include/command.h @@ -81,7 +81,6 @@ cmd_process(uint_fast8_t flag, int argc, char * const argv[], uint_fast8_t *repe /* command.c */ command_ret_t do_help(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const argv[]); -int cmd_tbl_item_count(cmd_tbl_t *p); command_ret_t cmd_usage(cmd_tbl_t *cmdtp); #ifdef CONFIG_AUTO_COMPLETE @@ -98,6 +97,13 @@ extern int cmd_auto_complete(const FLASH char *const prompt, char *buf, int *np, */ int cmd_process_error(cmd_tbl_t *cmdtp, int err); +/** + * cmd_error() - print error message + * + * @fmt: + */ +void cmd_error(int status, int errnum, const char *fmt, ...); + /* * Monitor Command *