aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-29 16:28:17 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-29 16:28:17 +0200
commit6d8d9dc5aad148a74bcdf8965bee9f7058a08166 (patch)
treedc187ee42701ffba853fbe09da25f033441628a4
parent543de3c28b417cc9a05df63ab8650201af1bae15 (diff)
verbosity: split verbosity level 1 in 2 levels
Change-Id: I32a96f1863caffa6a17c25f52d06538f8eb60555 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--include/afb/afb-verbosity.h6
-rw-r--r--src/verbose.h13
2 files changed, 10 insertions, 9 deletions
diff --git a/include/afb/afb-verbosity.h b/include/afb/afb-verbosity.h
index 1a74654c..6c297562 100644
--- a/include/afb/afb-verbosity.h
+++ b/include/afb/afb-verbosity.h
@@ -19,9 +19,9 @@
#define AFB_VERBOSITY_LEVEL_ERROR 0
#define AFB_VERBOSITY_LEVEL_WARNING 1
-#define AFB_VERBOSITY_LEVEL_NOTICE 1
-#define AFB_VERBOSITY_LEVEL_INFO 2
-#define AFB_VERBOSITY_LEVEL_DEBUG 3
+#define AFB_VERBOSITY_LEVEL_NOTICE 2
+#define AFB_VERBOSITY_LEVEL_INFO 3
+#define AFB_VERBOSITY_LEVEL_DEBUG 4
#define _AFB_SYSLOG_LEVEL_ERROR_ 3
#define _AFB_SYSLOG_LEVEL_WARNING_ 4
diff --git a/src/verbose.h b/src/verbose.h
index 8b605796..4b103ca8 100644
--- a/src/verbose.h
+++ b/src/verbose.h
@@ -27,9 +27,10 @@
----------------+------------------------
lesser than 0 : no message at all
0 : ERROR
- 1 : ERROR, WARNING, NOTICE
- 2 : ERROR, WARNING, NOTICE, INFO
- greater than 2 : ERROR, WARNING, NOTICE, INFO, DEBUG
+ 1 : ERROR, WARNING
+ 2 : ERROR, WARNING, NOTICE
+ 3 : ERROR, WARNING, NOTICE, INFO
+ greater than 3 : ERROR, WARNING, NOTICE, INFO, DEBUG
*/
extern int verbosity;
@@ -38,9 +39,9 @@ enum verbosity_levels
{
Verbosity_Level_Error = 0,
Verbosity_Level_Warning = 1,
- Verbosity_Level_Notice = 1,
- Verbosity_Level_Info = 2,
- Verbosity_Level_Debug = 3
+ Verbosity_Level_Notice = 2,
+ Verbosity_Level_Info = 3,
+ Verbosity_Level_Debug = 4
};
extern void verbose_set_name(const char *name, int authority);