user_mgmt: Fix incorrect log description
The entry method in log debug should be getManagedObjectsMethod
instead of getSubTree.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: I1dfdbd67412284f385466b56a67e86026ec97be1
diff --git a/user_channel/user_mgmt.cpp b/user_channel/user_mgmt.cpp
index 97e6a8c..00ed142 100644
--- a/user_channel/user_mgmt.cpp
+++ b/user_channel/user_mgmt.cpp
@@ -65,7 +65,6 @@
"/xyz/openbmc_project/object_mapper";
static constexpr const char* objMapperInterface =
"xyz.openbmc_project.ObjectMapper";
-static constexpr const char* getSubTreeMethod = "GetSubTree";
static constexpr const char* getObjectMethod = "GetObject";
static constexpr const char* ipmiUserMutex = "ipmi_usr_mutex";
@@ -587,7 +586,7 @@
catch (const sdbusplus::exception_t& e)
{
log<level::ERR>("Failed to excute method",
- entry("METHOD=%s", getSubTreeMethod),
+ entry("METHOD=%s", getManagedObjectsMethod),
entry("PATH=%s", userMgrObjBasePath));
return false;
}
@@ -1698,7 +1697,7 @@
catch (const sdbusplus::exception_t& e)
{
log<level::DEBUG>("Failed to excute method",
- entry("METHOD=%s", getSubTreeMethod),
+ entry("METHOD=%s", getManagedObjectsMethod),
entry("PATH=%s", userMgrObjBasePath));
return;
}