diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2017-08-16 16:30:08 -0500 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-08-18 11:50:40 -0500 |
commit | 1e1bdc75b52fd403026da68b3404865bb13218db (patch) | |
tree | 7c4042b21348e3a7016e265ac00130a53c9ee31f /mboxd_pnor_partition_table.cpp | |
parent | eb083550701a4e3bda8d4b07e37d1f9fd6017424 (diff) | |
download | phosphor-mboxd-1e1bdc75b52fd403026da68b3404865bb13218db.tar.gz phosphor-mboxd-1e1bdc75b52fd403026da68b3404865bb13218db.zip |
pnor_partition_table: Handle toc addresses starting with 0x
With open-power/skiboot commit 36bab76, pflash added a prefix
of 0x to the partition addresses, which is used to generate
the toc.
Add an optional prefix of 0x to the regex to handle this change
while being backwards compatible.
Also add the optional prefix of 0x to the 3rd parameter as this
should also change to specify it's a hex number.
The std::stoul function to convert the string to hex handles
the string with and without the 0x prefix.
Resolves openbmc/openbmc#2124
Change-Id: I2273e28781d57ed8e3640fd287df1fad2e1da3bf
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'mboxd_pnor_partition_table.cpp')
0 files changed, 0 insertions, 0 deletions