Pass error to log into shutdown function

Changing the power off utility function to take a
template parameter that specifies the error to log
before the shutdown instead of hardcoding it in
the function.

Also change the 2 callers of this function to pass
in the error type.

Change-Id: Ic83d87d5000f881ed9832092be207e91adf81c0c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
4 files changed
tree: 18ae0c83b85e032d4edf53e1db3289f7d02dcd07
  1. org/
  2. power-sequencer/
  3. power-supply/
  4. test/
  5. .gitignore
  6. argument.hpp
  7. bootstrap.sh
  8. configure.ac
  9. device.hpp
  10. device_monitor.hpp
  11. elog-errors.hpp
  12. event.hpp
  13. file.hpp
  14. LICENSE
  15. Makefile.am
  16. names_values.hpp
  17. pmbus.cpp
  18. pmbus.hpp
  19. README.md
  20. timer.cpp
  21. timer.hpp
  22. utility.cpp
  23. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

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

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