summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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; \