vpnor: fix partition file path passed to open()
Change-Id: I712699b6a5200115759eadc64a10d0b61b3d9d6f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/pnor_partition.cpp b/pnor_partition.cpp
index 015a951..ba0ac20 100644
--- a/pnor_partition.cpp
+++ b/pnor_partition.cpp
@@ -109,15 +109,13 @@
elog<InternalFailure>();
}
- MSG_DBG("Couldn't open the file[%s]", path.c_str());
-
// we don't get the file in the respective partition(RW/PSRV)
// try to open it from RO location.
fs::path partitionFilePath = context->paths.ro_loc;
partitionFilePath /= partition->data.name;
- rc = Request::open(path, O_RDONLY);
+ rc = Request::open(partitionFilePath, O_RDONLY);
if (rc != ReturnCode::SUCCESS)
{
elog<InternalFailure>();