summaryrefslogtreecommitdiffstats
path: root/pnor_partition.cpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2017-07-12 12:21:36 -0500
committerDeepak Kodihalli <dkodihal@in.ibm.com>2017-07-17 04:10:49 -0500
commit96acf160aec88fb754606baa361b4407de066724 (patch)
treebcfb45b8de2365bccadf82aba46a987746eb1d0b /pnor_partition.cpp
parentb9cdcd2b1639fdaf65d8dfab16ebb7ba530cec78 (diff)
downloadphosphor-mboxd-96acf160aec88fb754606baa361b4407de066724.tar.gz
phosphor-mboxd-96acf160aec88fb754606baa361b4407de066724.zip
vpnor: fix partition file path passed to open()
Change-Id: I712699b6a5200115759eadc64a10d0b61b3d9d6f Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'pnor_partition.cpp')
-rw-r--r--pnor_partition.cpp4
1 files changed, 1 insertions, 3 deletions
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 @@ const pnor_partition* RORequest::getPartitionInfo(struct mbox_context* context,
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>();
OpenPOWER on IntegriCloud