mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user