summaryrefslogtreecommitdiffstats
path: root/softoff/mainapp.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-01-24 18:48:40 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-03-22 11:15:13 +0530
commit7cc9d716a4880c14f6a7882c25d920ce7cd77cd4 (patch)
tree0facea3c8be4b756bff38de3b5c75852b39ca4cd /softoff/mainapp.cpp
parent506aa0f33362eee06a8f7a2572519d4053f06e41 (diff)
downloadphosphor-host-ipmid-7cc9d716a4880c14f6a7882c25d920ce7cd77cd4.tar.gz
phosphor-host-ipmid-7cc9d716a4880c14f6a7882c25d920ce7cd77cd4.zip
Add function to send SMS_ATTN to host
This patch overrides one of the base API and sends a message that enables the current HOST IPMI BT provider to actually set the SMS_ATTN. Change-Id: I250ea6bed99e569e493251f6fc298aa7ed7c776f Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'softoff/mainapp.cpp')
-rw-r--r--softoff/mainapp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/softoff/mainapp.cpp b/softoff/mainapp.cpp
index a974ed7..38b6984 100644
--- a/softoff/mainapp.cpp
+++ b/softoff/mainapp.cpp
@@ -13,9 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include <phosphor-logging/log.hpp>
#include "softoff.hpp"
#include "config.h"
+using namespace phosphor::logging;
+
int main(int argc, char** argv)
{
// Get a handle to system dbus.
@@ -25,7 +28,7 @@ int main(int argc, char** argv)
sdbusplus::server::manager::manager(bus, SOFTOFF_OBJPATH);
// Create the SoftPowerOff object.
- phosphor::ipmi::SoftPowerOff obj(bus, SOFTOFF_OBJPATH);
+ phosphor::ipmi::SoftPowerOff object(bus, SOFTOFF_OBJPATH);
/** @brief Claim the bus */
bus.request_name(SOFTOFF_BUSNAME);
OpenPOWER on IntegriCloud