summaryrefslogtreecommitdiffstats
path: root/watch.hpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-06-12 16:42:33 -0700
committerWilliam A. Kennington III <wak@google.com>2018-06-12 16:53:21 -0700
commit90d147a1ee5340278506bbdf94edc32bb77154f2 (patch)
treebd60788e13dea94b348236f156be3bc51c1d9e30 /watch.hpp
parent15cd3ce7045fb4da18c0b9dc89772d9807490a54 (diff)
downloadphosphor-debug-collector-90d147a1ee5340278506bbdf94edc32bb77154f2.tar.gz
phosphor-debug-collector-90d147a1ee5340278506bbdf94edc32bb77154f2.zip
elog_watch: Fix parsing of elog add requests
Requests come in the form "oa{sa{sv}}". However, the way sdbusplus was interpreting the type of our message "a{oa{sa{sv}}}" since tuples are not allowed to consume multiple arguments during the read call as that would be ambiguous. This fixes the type issues. Prior to the change to sdbusplus that introduces error handling for the read calls, the sd_bus_message_{enter,exit}_container were failing during the read on the pair. Luckily this produces the expected result for the read and our old code was "working". This also cleans up an unnecessary string move. Tested: Builds and no longer produces errors on zaius when elogs are added. Change-Id: Ifc5394f3f361e8932c939376bd0bf5b4e3ca589c Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'watch.hpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud