mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-26 20:07:28 +00:00
These are part of compel UAPI so should be prefixed with COMPEL_ in order to not pollute the namespace. While at it, move from set of defines to an enum, which looks a bit cleaner. Also, kill LOG_UNDEF as it's not used anywhere. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
21 lines
543 B
C
21 lines
543 B
C
#ifndef UAPI_COMPEL_LOGLEVELS_H__
|
|
#define UAPI_COMPEL_LOGLEVELS_H__
|
|
|
|
/*
|
|
* Log levels used by compel itself (see compel_log_init()),
|
|
* also by log functions in the std plugin.
|
|
*/
|
|
|
|
enum __compel_log_levels
|
|
{
|
|
COMPEL_LOG_MSG, /* Print message regardless of log level */
|
|
COMPEL_LOG_ERROR, /* Errors only, when we're in trouble */
|
|
COMPEL_LOG_WARN, /* Warnings */
|
|
COMPEL_LOG_INFO, /* Informative, everything is fine */
|
|
COMPEL_LOG_DEBUG, /* Debug only */
|
|
|
|
COMPEL_DEFAULT_LOGLEVEL = COMPEL_LOG_WARN
|
|
};
|
|
|
|
#endif /* UAPI_COMPEL_LOGLEVELS_H__ */
|