[CRIU] [PATCH 08/38] compel: uapi -- Add loglevels.h header

Cyrill Gorcunov gorcunov at openvz.org
Tue Oct 11 09:03:58 PDT 2016


Will use it for add: cli, library and plugins.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/include/uapi/loglevels.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 compel/include/uapi/loglevels.h

diff --git a/compel/include/uapi/loglevels.h b/compel/include/uapi/loglevels.h
new file mode 100644
index 000000000000..1f2b665cb4e1
--- /dev/null
+++ b/compel/include/uapi/loglevels.h
@@ -0,0 +1,12 @@
+#ifndef UAPI_COMPEL_LOGLEVELS_H__
+#define UAPI_COMPEL_LOGLEVELS_H__
+
+#define LOG_MSG			(0) /* Print message regardless of log level */
+#define LOG_ERROR		(1) /* Errors only, when we're in trouble */
+#define LOG_WARN		(2) /* Warnings, dazen and confused but trying to continue */
+#define LOG_INFO		(3) /* Informative, everything is fine */
+#define LOG_DEBUG		(4) /* Debug only */
+
+#define DEFAULT_LOGLEVEL	LOG_WARN
+
+#endif /* UAPI_COMPEL_LOGLEVELS_H__ */
-- 
2.7.4



More information about the CRIU mailing list