From 8b1c9cad58f5e2055646b57245fc72cca398c264 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Mon, 14 Jun 2010 11:35:26 +0300 Subject: ubi-tests: add normsg Just like we have in ubi-utils. Signed-off-by: Artem Bityutskiy --- tests/ubi-tests/common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/ubi-tests') diff --git a/tests/ubi-tests/common.h b/tests/ubi-tests/common.h index 86357cb..859af14 100644 --- a/tests/ubi-tests/common.h +++ b/tests/ubi-tests/common.h @@ -24,6 +24,7 @@ #define __COMMON_H__ #include +#include #ifdef __cplusplus extern "C" { @@ -35,6 +36,11 @@ extern "C" { #define min(a, b) ((a) < (b) ? (a) : (b)) +/* Normal messages */ +#define normsg(fmt, ...) do { \ + printf(TESTNAME ": " fmt "\n", ##__VA_ARGS__); \ +} while(0) + #define errmsg(fmt, ...) ({ \ __errmsg(TESTNAME, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__); \ -1; \ -- cgit v1.2.3