dovecot-2.1: liblib: Added failure_log_type_names[] array.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 6 19:30:24 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/0d224f2c3152
changeset: 14064:0d224f2c3152
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 06 19:28:40 2012 +0200
description:
liblib: Added failure_log_type_names[] array.
diffstat:
src/lib/failures.c | 4 ++++
src/lib/failures.h | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r fa7e1246e0e2 -r 0d224f2c3152 src/lib/failures.c
--- a/src/lib/failures.c Thu Feb 02 23:22:06 2012 +0200
+++ b/src/lib/failures.c Mon Feb 06 19:28:40 2012 +0200
@@ -26,6 +26,10 @@
"Panic: "
};
+const char *failure_log_type_names[LOG_TYPE_COUNT] = {
+ "debug", "info", "warning", "error", "fatal", "panic"
+};
+
/* Initialize working defaults */
static failure_callback_t *fatal_handler ATTR_NORETURN =
default_fatal_handler;
diff -r fa7e1246e0e2 -r 0d224f2c3152 src/lib/failures.h
--- a/src/lib/failures.h Thu Feb 02 23:22:06 2012 +0200
+++ b/src/lib/failures.h Mon Feb 06 19:28:40 2012 +0200
@@ -44,6 +44,7 @@
const char *format, va_list args);
extern const char *failure_log_type_prefixes[];
+extern const char *failure_log_type_names[];
void i_log_type(const struct failure_context *ctx, const char *format, ...)
ATTR_FORMAT(2, 3);
More information about the dovecot-cvs
mailing list