Skip to content

Commit 987a43e

Browse files
geertustorulf
authored andcommitted
pmdomain: core: Fix "managed by" alignment in debug summary
The "performance" column contains variable-width values. Hence when their printed values contain more than one digit, all values in successive columns become misaligned. Fix this by formatting it as a fixed-width field. Adjust successive spaces and field widths to retain the exiting layout. Fixes: 0155aaf ("PM: domains: Add the domain HW-managed mode to the summary") Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/e004f9d2a75e9a49c269507bb8a4514001751e85.1725459707.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <[email protected]>
1 parent 692c20c commit 987a43e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pmdomain/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3236,15 +3236,15 @@ static void mode_status_str(struct seq_file *s, struct device *dev)
32363236

32373237
gpd_data = to_gpd_data(dev->power.subsys_data->domain_data);
32383238

3239-
seq_printf(s, "%20s", gpd_data->hw_mode ? "HW" : "SW");
3239+
seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW");
32403240
}
32413241

32423242
static void perf_status_str(struct seq_file *s, struct device *dev)
32433243
{
32443244
struct generic_pm_domain_data *gpd_data;
32453245

32463246
gpd_data = to_gpd_data(dev->power.subsys_data->domain_data);
3247-
seq_put_decimal_ull(s, "", gpd_data->performance_state);
3247+
seq_printf(s, "%-10u ", gpd_data->performance_state);
32483248
}
32493249

32503250
static int genpd_summary_one(struct seq_file *s,

0 commit comments

Comments
 (0)