summaryrefslogtreecommitdiffstats
path: root/utils.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-08-29 14:09:35 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-09-01 15:48:12 +0000
commit18dc1281fe5af83c1dbb9c8895d7af824d2c1856 (patch)
tree9407a71f881b0731a889f5fe5b1531ce2584f6d0 /utils.cpp
parent6c56a4a82863859d0d593621dc86f2a576440e77 (diff)
downloadopenpower-occ-control-18dc1281fe5af83c1dbb9c8895d7af824d2c1856.tar.gz
openpower-occ-control-18dc1281fe5af83c1dbb9c8895d7af824d2c1856.zip
Change signature of getService
getService() has [bus, interface, path] as parameter and the caller invoked it with [bus, path, interface] and that resulted in a failure. Although the fix can be put into the caller to pass the right arguments, better fix would be to change the signature of getService() to receive path and then the interface as that is what has been followed all over and the deviation resulted in this bug. Change-Id: I3efe7f4f0a2d0bceb7e6e801cd68de6b2624fbe0 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'utils.cpp')
-rw-r--r--utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils.cpp b/utils.cpp
index 1dfdcef..d9a98ee 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -13,8 +13,8 @@ using InternalFailure = sdbusplus::xyz::openbmc_project::Common::
Error::InternalFailure;
std::string getService(sdbusplus::bus::bus& bus,
- const std::string& intf,
- const std::string& path)
+ const std::string& path,
+ const std::string& intf)
{
auto mapperCall = bus.new_method_call("xyz.openbmc_project.ObjectMapper",
"/xyz/openbmc_project/object_mapper",
OpenPOWER on IntegriCloud