Add Debian patch to fix non-analog sensor readings
Originally reported upstream by mareedu srinivasa rao: https://sourceforge.net/p/ipmitool/bugs/490/ but never applied.
This commit is contained in:
parent
8d70a87b63
commit
b6a17ea464
35
0105-sensor_reading.patch
Normal file
35
0105-sensor_reading.patch
Normal file
@ -0,0 +1,35 @@
|
||||
Description: Fix soensor reading
|
||||
Author: mareedu srinivasa rao
|
||||
Origin: upstream, https://sourceforge.net/p/ipmitool/bugs/490/
|
||||
Bug: https://sourceforge.net/p/ipmitool/bugs/490/
|
||||
Bug-debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983082
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2022-10-29
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
Index: trunk/lib/ipmi_sdr.c
|
||||
===================================================================
|
||||
--- trunk.orig/lib/ipmi_sdr.c
|
||||
+++ trunk/lib/ipmi_sdr.c
|
||||
@@ -1799,7 +1799,7 @@ ipmi_sdr_print_sensor_fc(struct ipmi_int
|
||||
sr->s_a_units);
|
||||
} else /* Discrete */
|
||||
snprintf(sval, sizeof(sval),
|
||||
- "0x%02x", sr->s_reading);
|
||||
+ "0x%02x", sr->s_data2);
|
||||
}
|
||||
else if (sr->s_scanning_disabled)
|
||||
snprintf(sval, sizeof (sval), sr->full ? "disabled" : "Not Readable");
|
||||
Index: trunk/lib/ipmi_sensor.c
|
||||
===================================================================
|
||||
--- trunk.orig/lib/ipmi_sensor.c
|
||||
+++ trunk/lib/ipmi_sensor.c
|
||||
@@ -201,7 +201,7 @@ ipmi_sensor_print_fc_discrete(struct ipm
|
||||
sr->s_a_str, sr->s_a_units, "ok");
|
||||
} else {
|
||||
printf("| 0x%-8x | %-10s | 0x%02x%02x",
|
||||
- sr->s_reading, "discrete",
|
||||
+ sr->s_data2, "discrete",
|
||||
sr->s_data2, sr->s_data3);
|
||||
}
|
||||
} else {
|
@ -30,6 +30,8 @@ Patch14: 0014-lanplus-cipher-retry.patch
|
||||
# https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/633054
|
||||
# https://sourceforge.net/p/ipmitool/mailman/message/24405281/
|
||||
Patch100: 0100-fix_buf_overflow.patch
|
||||
# https://sourceforge.net/p/ipmitool/bugs/490/
|
||||
Patch105: 0105-sensor_reading.patch
|
||||
|
||||
BuildRequires: openssl-devel readline-devel ncurses-devel
|
||||
%{?systemd_requires}
|
||||
|
Loading…
Reference in New Issue
Block a user