summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeo C2018-08-27 22:01:03 +0200
committerLeo C2018-08-28 12:23:50 +0200
commit022330eb94f180b0b626988d294ce43c2191ad61 (patch)
treef5e1a6394524b6e5e735704af504e7cad8cd3e5b /include
parent7439a2b57aa403a4b4d0b5cf85095447bd9a3703 (diff)
downloadz180-stamp-022330eb94f180b0b626988d294ce43c2191ad61.zip
error handling (WIP)
Diffstat (limited to 'include')
-rw-r--r--include/command.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 93c9a2d..d5eeb36 100644
--- a/include/command.h
+++ b/include/command.h
@@ -97,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(const char *fmt, ...);
+
/*
* Monitor Command
*