Print default values for invalid system SEL entries

If a system type SEL entry is invalid and does not provide the
required data to print, instead of returning a failure it can
populate default data and continue.

This makes it so 'ipmitool sel list' can continue returning
any remaining SEL entries even if an invalid system type
entry is encountered.

Tested:
Populated invalid system type  entries in the log file:
2019-04-26T20:59:42.606573+00:00 6,2,FFFFFF,3,,1
2019-04-26T20:59:43.606573+00:00 7,c0,010203040506070809,,,
2019-04-26T20:59:44.606573+00:00 8,2,FFFFFF,3,/xyz/openbmc_project/sensors/fan_pwm/Pwm_2,1
2019-04-26T20:59:45.606573+00:00 9,2,FFFFFF,,/xyz/openbmc_project/sensors/fan_pwm/Pwm_2,1
2019-04-26T20:59:46.606573+00:00 10,2,FFFFFF,3,/xyz/openbmc_project/sensors/fan_pwm/Pwm_2,

and confirmed that 'ipmitool sel list' can successfully print all of them:
   6 | 04/26/19 | 20:59:42 UTC | reserved #0xff |  | Asserted
   7 | 04/26/19 | 20:59:43 UTC | OEM record c0 | 030201 | 040506070809
   8 | 04/26/19 | 20:59:44 UTC | Fan #0x07 |  | Asserted
   9 | 04/26/19 | 20:59:45 UTC | reserved #0xff |  | Asserted
   a | 04/26/19 | 20:59:46 UTC | Fan #0x07 |  | Asserted

Change-Id: Icea6e955c3a006a78b7ba7322af6c8bafc618a91
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
1 file changed