For starters it just amounts to a _ckpt_debug(CKPT_ERR), and has no callers. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> --- include/linux/checkpoint.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/linux/checkpoint.h b/include/linux/checkpoint.h index dfcb59b..351f9ac 100644 --- a/include/linux/checkpoint.h +++ b/include/linux/checkpoint.h @@ -330,6 +330,7 @@ static inline int ckpt_validate_errno(int errno) #define CKPT_DMEM 0x20 /* memory state */ #define CKPT_DPAGE 0x40 /* memory pages */ #define CKPT_DIPC 0x80 /* sysvipc */ +#define CKPT_ERR 0x100 /* error */ #define CKPT_DDEFAULT 0xffff /* default debug level */ @@ -370,6 +371,15 @@ static inline void restore_debug_free(struct ckpt_ctx *ctx) {} #endif /* CONFIG_CHECKPOINT_DEBUG */ +#define ckpt_log_error(ctx, fmt, args...) do { } while (0) + +#define ckpt_error(ctx, fmt, args...) \ + do { \ + ckpt_log_error(ctx, "%s:%d " fmt, __func__, __LINE__, \ + ## args); \ + _ckpt_debug(CKPT_ERR, fmt, ## args); \ + } while (0) + #endif /* CONFIG_CHECKPOINT */ #endif /* __KERNEL__ */ -- 1.6.1 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers