mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
libcriu: define log level constants
Replace magic numbers used to set log level in libcriu with constants. Signed-off-by: Radostin Stoyanov <radostin@redhat.com>
This commit is contained in:
parent
5ec2a6aaad
commit
a8c5efe4c1
5 changed files with 13 additions and 6 deletions
|
|
@ -28,6 +28,13 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define CRIU_LOG_UNSET (-1)
|
||||
#define CRIU_LOG_MSG (0) /* Print message regardless of log level */
|
||||
#define CRIU_LOG_ERROR (1) /* Errors only */
|
||||
#define CRIU_LOG_WARN (2) /* Warnings */
|
||||
#define CRIU_LOG_INFO (3) /* Informative */
|
||||
#define CRIU_LOG_DEBUG (4) /* Debug only */
|
||||
|
||||
enum criu_service_comm { CRIU_COMM_SK, CRIU_COMM_FD, CRIU_COMM_BIN };
|
||||
|
||||
enum criu_cg_mode {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue