From bcafaace292642c4cabeb79bfa136340c29df5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Sat, 30 Nov 2013 04:48:26 +0100 Subject: [PATCH] Fix the log level string of NONE. --- include/ucore/logging.h | 2 +- src/logging.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ucore/logging.h b/include/ucore/logging.h index 3da4baa..b0a956f 100644 --- a/include/ucore/logging.h +++ b/include/ucore/logging.h @@ -239,7 +239,7 @@ void uc_log_destination_set_module_loglevel( * SHORT_NAME_1=LEVEL:SHORT_NAME_2=LEVEL:SHORT_NAME_N=LEVEL * * The SHORT_NAME_N is the .short_name within a struct uc_log_module - * LEVEL is one of DEBUG,INFO, WARNING or ERROR + * LEVEL is one of DEBUG, INFO, WARNING, ERROR or NONE * Example: * DB=DEBUG:IO=ERROR:POLLER=INFO * diff --git a/src/logging.c b/src/logging.c index 248e548..24445cd 100644 --- a/src/logging.c +++ b/src/logging.c @@ -75,6 +75,7 @@ static const char *const g_log_levels[] = { "WARNING", "UNKNOWN_6", "ERROR", + "UNKNOWN_8", "NONE" };