Fix an incorrect logging
It was incorrectly using "%d" to log a "METHOD" string.
Fix it.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I792f82feb894f5d5a83c4d4f60f52135f6d08dd0
diff --git a/src/utils.cpp b/src/utils.cpp
index 8d782ab..949a1e1 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -115,10 +115,9 @@
}
catch (const sdbusplus::exception::SdBusError& ex)
{
- log<level::ERR>("Mapper call failed", entry("METHOD=%d", "GetObject"),
- entry("PATH=%s", path),
+ log<level::ERR>("GetObject call failed", entry("PATH=%s", path),
entry("INTERFACE=%s", interface));
- throw std::runtime_error("Mapper call failed");
+ throw std::runtime_error("GetObject call failed");
}
}