From 4787c3de81455bc3e0c3c8ff607730284cacc057 Mon Sep 17 00:00:00 2001 From: Carol Hebert Date: Wed, 14 Jan 2009 18:59:21 +0000 Subject: [PATCH] Kipp Glover's 11/24/08 patch to fix node reporting in GUID; Tracker #2339675 --- ipmitool/lib/ipmi_mc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ipmitool/lib/ipmi_mc.c b/ipmitool/lib/ipmi_mc.c index 6a71fbc..b424ad4 100644 --- a/ipmitool/lib/ipmi_mc.c +++ b/ipmitool/lib/ipmi_mc.c @@ -441,13 +441,14 @@ ipmi_mc_get_guid(struct ipmi_intf * intf) memset(&guid, 0, sizeof(struct ipmi_guid)); memcpy(&guid, rsp->data, rsp->data_len); + /* Kipp - changed order of last field (node) to follow specification */ printf("System GUID : %08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x\n", guid.time_low, guid.time_mid, guid.time_hi_and_version, guid.clock_seq_hi_variant << 8 | guid.clock_seq_low, - guid.node[5], guid.node[4], guid.node[3], - guid.node[2], guid.node[1], guid.node[0]); + guid.node[0], guid.node[1], guid.node[2], + guid.node[3], guid.node[4], guid.node[5]); - s = (time_t)BSWAP_32(guid.time_low); + s = (time_t)guid.time_low; /* Kipp - removed the BSWAP_32, it was not needed here */ strftime(tbuf, sizeof(tbuf), "%m/%d/%Y %H:%M:%S", localtime(&s)); printf("Timestamp : %s\n", tbuf); }