]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/command.h
z180-serv: measure cpu frequency
[z180-stamp.git] / include / command.h
index 614d5273c948f17fc87fe1ade262064fe62638d3..6109f9f97b969d4a7018ae4e26d1c59a8b4d9f48 100644 (file)
@@ -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
  *