- LOG_SILENT can be used to silence the log(needed in upcoming patches)
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 10 Mar 2008 12:04:30 +0000 (12:04 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 10 Mar 2008 12:04:30 +0000 (12:04 +0000)
- ERROR_FAIL - added to emphasize that information about what went wrong is
 contained in Error: log statements and not in a 32 bit return value.

git-svn-id: svn://svn.berlios.de/openocd/trunk@481 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/helper/log.h

index f7d703941ac2bc956daf18c88ab1c886aaee9d69..601b7527b950e73daa4179e2b4930aff937ce09c 100644 (file)
@@ -26,6 +26,8 @@
 #include <stdarg.h>
 
 /* logging priorities 
+ * LOG_SILENT - turn off all output. In lieu of try+catch this can be used as a 
+ *              feeble ersatz.
  * LOG_USER - user messages. Could be anything from information 
  *            to progress messags. These messages do not represent
  *            incorrect or unexpected behaviour, just normal execution. 
@@ -36,6 +38,7 @@
  */
 enum log_levels
 {
+       LOG_SILENT = -3,
        LOG_OUTPUT = -2,
        LOG_USER = -1,
        LOG_ERROR = 0,
@@ -108,5 +111,9 @@ extern int debug_level;
 #define ERROR_INVALID_ARGUMENTS                (-1)
 #define ERROR_NO_CONFIG_FILE           (-2)
 #define ERROR_BUF_TOO_SMALL                    (-3)
+/* see "Error:" message 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)
 
 #endif /* LOG_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)