From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: Linux Containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>
Subject: [PATCH 1/3] cr: debug: define ckpt_error()
Date: Thu, 22 Oct 2009 23:13:25 -0500 [thread overview]
Message-ID: <20091023041325.GA2863@us.ibm.com> (raw)
For starters it just amounts to a _ckpt_debug(CKPT_ERR),
and has no callers.
Signed-off-by: Serge E. Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
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
next reply other threads:[~2009-10-23 4:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 4:13 Serge E. Hallyn [this message]
[not found] ` <20091023041325.GA2863-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-23 4:13 ` [PATCH 2/3] define function to print error messages to user log Serge E. Hallyn
[not found] ` <20091023041349.GA2915-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-25 17:58 ` Oren Laadan
[not found] ` <4AE491CB.60109-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-10-26 18:33 ` Serge E. Hallyn
2009-10-23 4:14 ` [PATCH 3/3] use ckpt_error in checkpoint/restart.c Serge E. Hallyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091023041325.GA2863@us.ibm.com \
--to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.