PM / Domains: Restore alignment of slaves in debugfs output
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 23 Feb 2016 16:49:17 +0000 (17:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Mar 2016 23:36:03 +0000 (00:36 +0100)
commit6954d43292674aaacc9b1cdbc28b1b2ea0cc6445
treee815e356bb26d68f2aaab353aee77df172859557
parent90e63452ac3a42c9ff10b12880429e8592cf39ec
PM / Domains: Restore alignment of slaves in debugfs output

The slave domains are no longer aligned with the table header in the
/sys/kernel/debug/pm_genpd/pm_genpd_summary output. Worse, the alignment
differs depending on the actual name of the state.

Format the state name and index into a buffer, and print that like
before to restore alignment.

Use "%u" for unsigned int while we're at it.

Fixes: fc5cbf0c94b6f7fd (PM / Domains: Support for multiple states)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c