summaryrefslogtreecommitdiff
path: root/src/helper/log.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-24 14:50:41 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-24 14:50:41 +0000
commit74eb754abcb49bd8a61b42398ba80d1a895a4604 (patch)
tree6c02624cffd7651fe1bf1cf3bbbb6cae21f57ae5 /src/helper/log.h
parent161deacc06d144ac94850bdc4e335c18650578a6 (diff)
downloadopenocd+libswd-74eb754abcb49bd8a61b42398ba80d1a895a4604.tar.gz
openocd+libswd-74eb754abcb49bd8a61b42398ba80d1a895a4604.tar.bz2
openocd+libswd-74eb754abcb49bd8a61b42398ba80d1a895a4604.tar.xz
openocd+libswd-74eb754abcb49bd8a61b42398ba80d1a895a4604.zip
more error message cleanup. invalid args & syntax errors both now print arguments of command.
git-svn-id: svn://svn.berlios.de/openocd/trunk@870 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/log.h')
-rw-r--r--src/helper/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/log.h b/src/helper/log.h
index 7a7c90cb..afe5da89 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -109,10 +109,10 @@ extern int debug_level;
* error codes < 100
*/
#define ERROR_OK (0)
-#define ERROR_INVALID_ARGUMENTS (-1)
+#define ERROR_INVALID_ARGUMENTS ERROR_COMMAND_SYNTAX_ERROR
#define ERROR_NO_CONFIG_FILE (-2)
#define ERROR_BUF_TOO_SMALL (-3)
-/* see "Error:" message for meaningful message to the user. The caller should
+/* see "Error:" log entry for meaningful message to the user. The caller should
* make no assumptions about what went wrong and try to handle the problem.
*/
#define ERROR_FAIL (-4)