Fix postcode dbus object path

Postcode dbus object path name is corrected as like postcode
manager dbus service with host id for single and multi host
postcode manager services

TESTED : Verified all host postcode dbus objects are displayed
correctly and tested in Facebook YosemiteV2 platform

Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I18dbdf221aa92544d7e652390564fc0a050bbdd0
diff --git a/meson.build b/meson.build
index e7cf00d..35e1271 100644
--- a/meson.build
+++ b/meson.build
@@ -13,7 +13,7 @@
 
 
 conf_data = configuration_data()
-conf_data.set_quoted('DBUS_OBJECT_NAME', '/xyz/openbmc_project/State/Boot/PostCode0')
+conf_data.set_quoted('DBUS_OBJECT_NAME', '/xyz/openbmc_project/State/Boot/PostCode')
 conf_data.set_quoted('DBUS_INTF_NAME','xyz.openbmc_project.State.Boot.PostCode')
 conf_data.set('MAX_BOOT_CYCLE_COUNT',get_option('max-boot-cycle-count'))
 conf_data.set('MAX_POST_CODE_SIZE_PER_CYCLE',get_option('max-post-code-size-per-cycle'))
diff --git a/src/main.cpp b/src/main.cpp
index 026558a..98e09fb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -58,13 +58,16 @@
     event = nullptr;
 
     sdbusplus::bus_t bus = sdbusplus::bus::new_default();
-    sdbusplus::server::manager_t m{bus, DBUS_OBJECT_NAME};
+
+    std::string dbusObjName =
+        DBUS_OBJECT_NAME + std::to_string(postcodeDataHolderObj.node);
+    sdbusplus::server::manager_t m{bus, dbusObjName.c_str()};
 
     intfName = DBUS_INTF_NAME + std::to_string(postcodeDataHolderObj.node);
 
     bus.request_name(intfName.c_str());
 
-    PostCode postCode{bus, DBUS_OBJECT_NAME, eventP};
+    PostCode postCode{bus, dbusObjName.c_str(), eventP};
 
     try
     {