ipmi: Don't set the timestamp on add events that don't have it
commit9f7d1d92a7adc74cb13305e0f542a030e27a3710
authorCorey Minyard <cminyard@mvista.com>
Sat, 19 Aug 2017 01:15:02 +0000 (18 20:15 -0500)
committerCorey Minyard <cminyard@mvista.com>
Tue, 30 Jan 2018 21:52:53 +0000 (30 15:52 -0600)
tree9a76631a4630fb4f9a1adc5e7a89f5ca6b7f202b
parent7f11cb6585d97ecdb8a657c3d8732a494e409827
ipmi: Don't set the timestamp on add events that don't have it

According to the spec, from section "32.3 OEM SEL Record - Type
E0h-FFh", event types from 0x0e to 0xff do not have a timestamp.
So don't set it when adding those types.  This required putting
the timestamp in a temporary buffer, since it's still required
to set the last addition time.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ipmi/ipmi_bmc_sim.c