Correct IPMI firmware revision report

OpenBMC currently uses firmware revision from the VERSION parameters
from /etc/os-release. While WebUI and Redfish uses entire string for
the revision, IPMI extracts major and minor numbers from that string.
However, phosphor-host-ipmd mistakenly converts the number to
hexa-decimal which make the mismatch between Redfish and IPMI.
This commit fixes the issue by updating the conversion to use decimal
number.

Tested:
1. Tag with v1.11.0001-ampere and check ipmitool mc info report
   firmware revision to 1.11

Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com>
Change-Id: I7340827dfc6de6664dde4b58e61197f81b4f89ca
1 file changed