components/ipmitool/patches/ipmitool.scanning.patch
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Wed, 25 May 2011 22:38:48 -0700
changeset 268 6518166b581c
child 589 beabcdec3918
permissions -rw-r--r--
7047461 "temporarily" restore sfw version of ipmitool to userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
268
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
--- ipmitool-1.8.10/lib/ipmi_sdr.c.orig	Fri Nov 21 13:00:00 2008
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
+++ ipmitool-1.8.10/lib/ipmi_sdr.c	Fri Nov 21 13:01:00 2008
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
@@ -1760,7 +1760,8 @@
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
 				printf("ns  | %2d.%1d | ",
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
 				       sensor->entity.id,
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
 				       sensor->entity.instance);
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
-				if (IS_SCANNING_DISABLED(rsp->data[1]))
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
+				if ((rsp != NULL) &&
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
+				    IS_SCANNING_DISABLED(rsp->data[1]))
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
 					printf("Disabled");
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
 				else
6518166b581c 7047461 "temporarily" restore sfw version of ipmitool to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
 					printf("No Reading");