ipmid: switch to lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I838587b2d564f3c00b78ce37e175d7e8ace51142
diff --git a/test/message/payload.cpp b/test/message/payload.cpp
index 0114e11..38977e4 100644
--- a/test/message/payload.cpp
+++ b/test/message/payload.cpp
@@ -317,16 +317,9 @@
extern "C"
{
-int sd_journal_send(const char* format, ...)
+int sd_journal_sendv(const struct iovec* iov, int /* n */)
{
- logs.push_back(format);
- return 0;
-}
-
-int sd_journal_send_with_location(const char* /*file*/, const char* /*line*/,
- const char* /*func*/, const char* format, ...)
-{
- logs.push_back(format);
+ logs.push_back(std::string((char*)iov[0].iov_base, iov[0].iov_len));
return 0;
}
}