diff options
Diffstat (limited to 'softoff')
-rw-r--r-- | softoff/mainapp.cpp | 4 | ||||
-rw-r--r-- | softoff/softoff.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/softoff/mainapp.cpp b/softoff/mainapp.cpp index c6c1858..3a47cc4 100644 --- a/softoff/mainapp.cpp +++ b/softoff/mainapp.cpp @@ -41,7 +41,7 @@ int main(int argc, char** argv) if (r < 0) { log<level::ERR>("Failure to create sd_event handler", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); return -1; } @@ -65,7 +65,7 @@ int main(int argc, char** argv) if (r < 0) { log<level::ERR>("Failure in processing request", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); return -1; } } diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp index 4a3166c..f76cd4f 100644 --- a/softoff/softoff.cpp +++ b/softoff/softoff.cpp @@ -81,7 +81,7 @@ void SoftPowerOff::hostControlEvent(sdbusplus::message::message& msg) if (r < 0) { log<level::ERR>("Failure to start Host shutdown wait timer", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); } else { @@ -120,7 +120,7 @@ auto SoftPowerOff::responseReceived(HostResponse response) -> HostResponse if (r < 0) { log<level::ERR>("Failure to STOP the timer", - entry("ERROR=%s", strerror(-r))); + entry("ERRNO=0x%X", -r)); } // This marks the completion of soft power off sequence. |