From 3083f5dc85f90fbe6e84b10d5e64b7ff057b6f87 Mon Sep 17 00:00:00 2001 From: Volkan Unal Date: Tue, 27 Jan 2026 10:01:53 +0000 Subject: [PATCH] lschp: Clean up unnecessary padding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alignment in tabular output is already guaranteed via the UTIL_REC_ALIGN_LEFT setting. Signed-off-by: Volkan Unal Reviewed-by: Peter Oberparleiter Signed-off-by: Jan Höppner --- zconf/chp/lschp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zconf/chp/lschp.c b/zconf/chp/lschp.c index 5e9234bd..ce77fed3 100644 --- a/zconf/chp/lschp.c +++ b/zconf/chp/lschp.c @@ -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));