All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] cr: debug: define ckpt_error()
@ 2009-10-23  4:13 Serge E. Hallyn
       [not found] ` <20091023041325.GA2863-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Serge E. Hallyn @ 2009-10-23  4:13 UTC (permalink / raw)
  To: Oren Laadan; +Cc: Linux Containers

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-26 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23  4:13 [PATCH 1/3] cr: debug: define ckpt_error() Serge E. Hallyn
     [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

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.