Blame SOURCES/0011-expand-sensor-name-column.patch

e20f4c
From 57b57b27fe2c17e3030c41ee5566af36ccd33941 Mon Sep 17 00:00:00 2001
e20f4c
From: Vaclav Dolezal <vdolezal@redhat.com>
e20f4c
Date: Thu, 30 Jan 2020 16:18:37 +0100
e20f4c
Subject: [PATCH] Expand column with name in ipmitool sdr/sensor output
e20f4c
e20f4c
---
e20f4c
 lib/ipmi_sdr.c    | 4 ++--
e20f4c
 lib/ipmi_sensor.c | 4 ++--
e20f4c
 2 files changed, 4 insertions(+), 4 deletions(-)
e20f4c
e20f4c
diff --git a/lib/ipmi_sdr.c b/lib/ipmi_sdr.c
e20f4c
index fd2c02d..0f6faab 100644
e20f4c
--- a/lib/ipmi_sdr.c
e20f4c
+++ b/lib/ipmi_sdr.c
e20f4c
@@ -1619,7 +1619,7 @@ ipmi_sdr_print_sensor_fc(struct ipmi_intf *intf,
e20f4c
 		/*
e20f4c
 		 * print sensor name, reading, state
e20f4c
 		 */
e20f4c
-		printf("%-16s | ", sr->s_id);
e20f4c
+		printf("%-24s | ", sr->s_id);
e20f4c
 
e20f4c
 		memset(sval, 0, sizeof (sval));
e20f4c
 
e20f4c
@@ -1657,7 +1657,7 @@ ipmi_sdr_print_sensor_fc(struct ipmi_intf *intf,
e20f4c
 		/*
e20f4c
 		 * print sensor name, number, state, entity, reading
e20f4c
 		 */
e20f4c
-		printf("%-16s | %02Xh | ",
e20f4c
+		printf("%-24s | %02Xh | ",
e20f4c
 		       sr->s_id, sensor->keys.sensor_num);
e20f4c
 
e20f4c
 		if (IS_THRESHOLD_SENSOR(sensor)) {
e20f4c
diff --git a/lib/ipmi_sensor.c b/lib/ipmi_sensor.c
e20f4c
index a0b7eb8..7328508 100644
e20f4c
--- a/lib/ipmi_sensor.c
e20f4c
+++ b/lib/ipmi_sensor.c
e20f4c
@@ -175,7 +175,7 @@ ipmi_sensor_print_fc_discrete(struct ipmi_intf *intf,
e20f4c
 			/* output format
e20f4c
 			 *   id value units status thresholds....
e20f4c
 			 */
e20f4c
-			printf("%-16s ", sr->s_id);
e20f4c
+			printf("%-24s ", sr->s_id);
e20f4c
 			if (sr->s_reading_valid) {
e20f4c
 				if (sr->s_has_analog_value) {
e20f4c
 					/* don't show discrete component */
e20f4c
@@ -276,7 +276,7 @@ ipmi_sensor_print_fc_threshold(struct ipmi_intf *intf,
e20f4c
 			/* output format
e20f4c
 			 *   id value units status thresholds....
e20f4c
 			 */
e20f4c
-			printf("%-16s ", sr->s_id);
e20f4c
+			printf("%-24s ", sr->s_id);
e20f4c
 			if (sr->s_reading_valid) {
e20f4c
 				if (sr->s_has_analog_value)
e20f4c
 					printf("| %-10.3f | %-10s | %-6s",
e20f4c
-- 
e20f4c
2.20.1
e20f4c