public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] kexec: Add new interface for printing error messages
@ 2013-03-20 13:15 Zhang Yanfei
  2013-03-20 13:17 ` [PATCH 2/2] kexec: Use err() instead of fprintf() Zhang Yanfei
  0 siblings, 1 reply; 5+ messages in thread
From: Zhang Yanfei @ 2013-03-20 13:15 UTC (permalink / raw)
  To: Simon Horman; +Cc: kexec@lists.infradead.org

From: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>

This patch imports an interface err() for printing error messages.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 kexec/kexec.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/kexec/kexec.h b/kexec/kexec.h
index 916a24b..4c43b8c 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -121,6 +121,11 @@ do { \
 		fprintf(stderr, __VA_ARGS__); \
 } while(0)
 
+#define err(...) \
+do { \
+	fprintf(stderr, __VA_ARGS__); \
+} while(0);
+
 struct kexec_segment {
 	const void *buf;
 	size_t bufsz;
-- 
1.7.1

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2013-03-27 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20 13:15 [PATCH 1/2] kexec: Add new interface for printing error messages Zhang Yanfei
2013-03-20 13:17 ` [PATCH 2/2] kexec: Use err() instead of fprintf() Zhang Yanfei
2013-03-20 13:21   ` Simon Horman
2013-03-25 15:21     ` Zhang Yanfei
2013-03-27 12:43       ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox