From: Zhang Yanfei <zhangyanfei.yes@gmail.com>
To: Simon Horman <horms@verge.net.au>
Cc: "kexec@lists.infradead.org" <kexec@lists.infradead.org>
Subject: [PATCH 1/2] kexec: Add new interface for printing error messages
Date: Wed, 20 Mar 2013 21:15:56 +0800 [thread overview]
Message-ID: <5149B68C.1080704@gmail.com> (raw)
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
next reply other threads:[~2013-03-20 13:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 13:15 Zhang Yanfei [this message]
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
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=5149B68C.1080704@gmail.com \
--to=zhangyanfei.yes@gmail.com \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.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.