ipmitool/ipmitool-1.8.12-bigendian2.patch

18 lines
1007 B
Diff
Raw Normal View History

2012-10-18 07:57:02 +00:00
diff -up ipmitool-1.8.12/lib/ipmi_delloem.c.bigendian2 ipmitool-1.8.12/lib/ipmi_delloem.c
--- ipmitool-1.8.12/lib/ipmi_delloem.c.bigendian2 2012-10-18 09:46:07.641569464 +0200
+++ ipmitool-1.8.12/lib/ipmi_delloem.c 2012-10-18 09:46:23.471318242 +0200
@@ -4283,10 +4283,10 @@ static int ipmi_set_power_cap(struct ipm
}
#if WORDS_BIGENDIAN
ipmipowercap.PowerCap = BSWAP_16(ipmipowercap.PowerCap);
- ipmipowercap.MaximumPowerConsump = BSWAP_16(ipmipowercap.MaximumPowerConsump);
- ipmipowercap.MinumumPowerConsump = BSWAP_16(ipmipowercap.MinimumPowerConsump);
+ ipmipowercap.MaximumPowerConsmp = BSWAP_16(ipmipowercap.MaximumPowerConsmp);
+ ipmipowercap.MinimumPowerConsmp = BSWAP_16(ipmipowercap.MinimumPowerConsmp);
ipmipowercap.AvailablePower = BSWAP_16(ipmipowercap.AvailablePower);
- ipmipowercap.totalnumpowersupp = BSWP_16(ipmipowercap.totalnumpowersupp);
+ ipmipowercap.totalnumpowersupp = BSWAP_16(ipmipowercap.totalnumpowersupp);
#endif
memset(data, 0, 13);