match: Fix propertiesChangedNamespace method
It should use arg0namespace instead of argN in the
propertiesChangedNamespace method.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ia73a30c875ebbe9ec070094ee78085e9fd596ddf
diff --git a/include/sdbusplus/bus/match.hpp b/include/sdbusplus/bus/match.hpp
index 3032712..9eb13a0 100644
--- a/include/sdbusplus/bus/match.hpp
+++ b/include/sdbusplus/bus/match.hpp
@@ -202,7 +202,7 @@
const std::string& i)
{
return type::signal() + path_namespace(p) + member("PropertiesChanged"s) +
- interface("org.freedesktop.DBus.Properties"s) + argN(0, i);
+ interface("org.freedesktop.DBus.Properties"s) + arg0namespace(i);
}
/**
* @brief Constructs a NameOwnerChanged match string for a service name