]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pmdomain: core: Harden inter-column space in debug summary
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Sep 2024 14:30:45 +0000 (16:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:51 +0000 (15:10 +0200)
[ Upstream commit 692c20c4d075bd452acfbbc68200fc226c7c9496 ]

The inter-column space in the debug summary is two spaces.  However, in
one case, the extra space is handled implicitly in a field width
specifier.  Make inter-column space explicit to ease future maintenance.

Fixes: 45fbc464b047 ("PM: domains: Add "performance" column to debug summary")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/ae61eb363621b981edde878e1e74d701702a579f.1725459707.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/power/domain.c

index aaf6c297c63d206279cee5b36a8b0e109b085946..fda0a5e50a2d90eee438f293fca5abd9acdb35c0 100644 (file)
@@ -3053,7 +3053,7 @@ static int genpd_summary_one(struct seq_file *s,
        else
                snprintf(state, sizeof(state), "%s",
                         status_lookup[genpd->status]);
-       seq_printf(s, "%-30s  %-50s %u", genpd->name, state, genpd->performance_state);
+       seq_printf(s, "%-30s  %-49s  %u", genpd->name, state, genpd->performance_state);
 
        /*
         * Modifications on the list require holding locks on both