Andrew Geissler | a90a31a | 2016-12-13 16:16:28 -0600 | [diff] [blame^] | 1 | #include <log.hpp> |
| 2 | #include "chassis_state_manager.hpp" |
| 3 | |
| 4 | namespace phosphor |
| 5 | { |
| 6 | namespace state |
| 7 | { |
| 8 | namespace manager |
| 9 | { |
| 10 | |
| 11 | // When you see server:: you know we're referencing our base class |
| 12 | namespace server = sdbusplus::xyz::openbmc_project::State::server; |
| 13 | |
| 14 | using namespace phosphor::logging; |
| 15 | |
| 16 | Chassis::Transition Chassis::requestedPowerTransition(Transition value) |
| 17 | { |
| 18 | |
| 19 | log<level::INFO>("Change to Chassis Requested Power State", |
| 20 | entry("CHASSIS_REQUESTED_POWER_STATE=%s", |
| 21 | convertForMessage(value).c_str())); |
| 22 | return server::Chassis::requestedPowerTransition(value); |
| 23 | } |
| 24 | |
| 25 | Chassis::PowerState Chassis::currentPowerState(PowerState value) |
| 26 | { |
| 27 | log<level::INFO>("Change to Chassis Power State", |
| 28 | entry("CHASSIS_CURRENT_POWER_STATE=%s", |
| 29 | convertForMessage(value).c_str())); |
| 30 | return server::Chassis::currentPowerState(value); |
| 31 | } |
| 32 | |
| 33 | } // namespace manager |
| 34 | } // namespace state |
| 35 | } // namepsace phosphor |