summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-04-09 14:28:15 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-04-11 18:20:18 +0000
commitf2587fce3d3c5eb4a5e3127badc4dfa40a08785f (patch)
treed1aa6ccfdf68509b622ce40eb81aee1464f71c88
parentc46f6cd7dc47ccafcd2e86e160a32fe1be404e7e (diff)
downloadphosphor-host-ipmid-f2587fce3d3c5eb4a5e3127badc4dfa40a08785f.zip
phosphor-host-ipmid-f2587fce3d3c5eb4a5e3127badc4dfa40a08785f.tar.gz
Fix up Get Device ID to use the new return helpers
The Get Device ID rewrite went in before some feedback had come along to add helper return functions for more readable error codes. Tested-by: Built and runs Get Device ID as before. Change-Id: I7e31ad3cff75acb11bda5ee06f60429552a61ed5 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
-rw-r--r--apphandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/apphandler.cpp b/apphandler.cpp
index e1779bb..78ed077 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -602,13 +602,13 @@ auto ipmiAppGetDeviceId() -> ipmi::RspType<uint8_t, // Device ID
else
{
log<level::ERR>("Device ID JSON parser failure");
- return ipmi::response(ipmi::ccUnspecifiedError);
+ return ipmi::responseUnspecifiedError();
}
}
else
{
log<level::ERR>("Device ID file not found");
- return ipmi::response(ipmi::ccUnspecifiedError);
+ return ipmi::responseUnspecifiedError();
}
}
OpenPOWER on IntegriCloud