lschp: Clean up unnecessary padding

Alignment in tabular output is already guaranteed via the
UTIL_REC_ALIGN_LEFT setting.

Signed-off-by: Volkan Unal <vunal@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Volkan Unal
2026-01-27 10:01:53 +00:00
committed by Jan Höppner
parent 2325d94453
commit 3083f5dc85

View File

@@ -107,7 +107,7 @@ static void print_chpid(const char *chp_dir, unsigned int css_id,
/* cmg */
util_file_read_line(buf, sizeof(buf), "%s/cmg", path);
if ((strcmp(buf, "unknown") == 0) || (strlen(buf) == 0))
util_rec_set(rec, CHP_CMG, "%-3s", "-");
util_rec_set(rec, CHP_CMG, "%s", "-");
else
util_rec_set(rec, CHP_CMG, "%-3lx", strtoul(buf, NULL, 0));