summaryrefslogtreecommitdiff
path: root/util/oem_kontron.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-02-24 21:18:20 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-02-24 21:18:20 +0100
commit7a40b1039a0cef3c47c75260f47aba0548c1cdbb (patch)
tree9cc82aefd88f309aea07c58dbd6056922bdbea9c /util/oem_kontron.c
parentf504e2f8269ff2f133f0700c8ad03ad4f05df49a (diff)
parente6806f1d217e07f52759e4fa1c792d1fe02f0d50 (diff)
Merge tag 'upstream/3.0.2'
Upstream version 3.0.2
Diffstat (limited to 'util/oem_kontron.c')
-rw-r--r--util/oem_kontron.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/oem_kontron.c b/util/oem_kontron.c
index 259fbdc..891075a 100644
--- a/util/oem_kontron.c
+++ b/util/oem_kontron.c
@@ -943,19 +943,19 @@ int decode_sel_kontron(uint8_t *evt, char *outbuf, int outsz, char fdesc,
if (rectype == 0xc1) { /* OEM type C1 */
oemid = evt[7] + (evt[8] << 8) + (evt[9] << 16);
if (oemid == VENDOR_KONTRON) {
- fmt_time(timestamp, timestr, sizeof(timestr));
- type_str = "Kontron";
- gstr = "BMC ";
- switch(evt[10]) {
- case 0x01:
- default:
- sprintf(mybuf,"OEM Event %02x %02x %02x %02x %02x %02x",
+ fmt_time(timestamp, timestr, sizeof(timestr));
+ type_str = "Kontron";
+ gstr = "BMC ";
+ switch(evt[10]) {
+ case 0x01:
+ default:
+ sprintf(mybuf,"OEM Event %02x %02x %02x %02x %02x %02x",
evt[10], evt[11], evt[12], evt[13], evt[14], evt[15]);
- break;
- }
- snprintf(outbuf, outsz, "%04x %s %s %s %s %s\n",
+ break;
+ }
+ snprintf(outbuf, outsz, "%04x %s %s %s %s %s\n",
id,timestr,get_sev_str(sevid), gstr, type_str, mybuf);
- rv = 0;
+ rv = 0;
} /*endif kontron*/
} else if (rectype == 0x02) {
type_str = "";