[PATCH 1/2] kexec: Add new interface for printing error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Zhang Yanfei <zhangyanfei@xxxxxxxxxxxxxx>

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

Signed-off-by: Zhang Yanfei <zhangyanfei at 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



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux