serialbridge: Use std::tuple for sdbusplus read
Update to use std::tuple variable for sdbusplus read, as
the sdbusplus read templates have changed.
Tested with ipmitool without error.
Change-Id: Id079f27d70c8c966d2f486f535b88e5cb55504c6
Signed-off-by: John Chung <john.chung@arm.com>
diff --git a/transport/serialbridge/serialcmd.cpp b/transport/serialbridge/serialcmd.cpp
index 68622d8..c6426fb 100644
--- a/transport/serialbridge/serialcmd.cpp
+++ b/transport/serialbridge/serialcmd.cpp
@@ -163,13 +163,11 @@
throw sdbusplus::exception::SdBusError(&error, "ipmid response");
}
- uint8_t netFn = 0xff;
- uint8_t lun = 0xff;
- uint8_t cmd = 0xff;
- uint8_t cc = 0xff;
- std::vector<uint8_t> data;
+ std::tuple<uint8_t, uint8_t, uint8_t, uint8_t, std::vector<uint8_t>>
+ ret;
+ m.read(ret);
- m.read(netFn, lun, cmd, cc, data);
+ const auto& [netFn, lun, cmd, cc, data] = ret;
uint8_t netFnLun = (netFn << netFnShift) | (lun & lunMask);
uint8_t seqLun = (seq << netFnShift) | (lun & lunMask);