28 lines
913 B
Diff
28 lines
913 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Martin Wilck <mwilck@suse.com>
|
||
|
Date: Wed, 6 Jul 2022 11:15:27 +0200
|
||
|
Subject: [PATCH] multipath tests: __wrap_dlog: print log message
|
||
|
|
||
|
This makes it easier to analyze errors from __wrap_dlog().
|
||
|
|
||
|
Signed-off-by: Martin Wilck <mwilck@suse.com>
|
||
|
|
||
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
||
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
||
|
---
|
||
|
tests/test-log.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/tests/test-log.c b/tests/test-log.c
|
||
|
index 0c17cd96..c1745872 100644
|
||
|
--- a/tests/test-log.c
|
||
|
+++ b/tests/test-log.c
|
||
|
@@ -20,6 +20,7 @@ void __wrap_dlog (int prio, const char * fmt, ...)
|
||
|
va_start(ap, fmt);
|
||
|
vsnprintf(buff, MAX_MSG_SIZE, fmt, ap);
|
||
|
va_end(ap);
|
||
|
+ fprintf(stderr, "%s(%d): %s", __func__, prio, buff);
|
||
|
expected = mock_ptr_type(char *);
|
||
|
assert_memory_equal(buff, expected, strlen(expected));
|
||
|
}
|