aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 11:35:26 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 11:35:26 +0300
commit8b1c9cad58f5e2055646b57245fc72cca398c264 (patch)
tree38d1efc8b71cf31ff334ec170d1a3137fa64b0d3 /tests
parentb2a06b3039b41958d9e1526a267c8abeab61388f (diff)
ubi-tests: add normsg
Just like we have in ubi-utils. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ubi-tests/common.h6
1 files changed, 6 insertions, 0 deletions
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 <string.h>
+#include <stdio.h>
#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; \