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>
1 file changed
tree: bd60788e13dea94b348236f156be3bc51c1d9e30
  1. tools/
  2. xyz/
  3. .gitignore
  4. bootstrap.sh
  5. configure.ac
  6. core_manager.cpp
  7. core_manager.hpp
  8. core_manager_main.cpp
  9. dump_entry.cpp
  10. dump_entry.hpp
  11. dump_internal.hpp
  12. dump_manager.cpp
  13. dump_manager.hpp
  14. dump_manager_main.cpp
  15. dump_serialize.cpp
  16. dump_serialize.hpp
  17. dump_utils.hpp
  18. elog_watch.cpp
  19. elog_watch.hpp
  20. ffdc
  21. LICENSE
  22. MAINTAINERS
  23. Makefile.am
  24. README.md
  25. watch.cpp
  26. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To clean the repository run `./bootstrap.sh clean`.