PM / domains: Align column headers and data in pm_genpd_summary output
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 Aug 2015 12:50:49 +0000 (14:50 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Aug 2015 23:50:07 +0000 (01:50 +0200)
"domain": header is indented by 4, data by 0 spaces => 0 spaces
"/device": header is indented by 11, data by 4 spaces => 4 spaces
"slaves": header is indented by 47, data by 49 spaces => 48 spaces

Ruler:
    1234567890123456789012345678901234567890123456789012345678901234567890

Before:

domain                      status         slaves
       /device                                      runtime status
    ----------------------------------------------------------------------
    a3sp                            on               a2us
/devices/platform/e60b0000.i2c                      suspended

After:

    domain                          status          slaves
/device                                             runtime status
    ----------------------------------------------------------------------
    a3sp                            on              a2us
/devices/platform/e60b0000.i2c                      suspended

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c

index 7666a1cbaf9513c4be77c8fb245d2132be00bc62..9bd2b28da1ed309c3ee239717e0329fe0c6550df 100644 (file)
@@ -2074,7 +2074,7 @@ static int pm_genpd_summary_one(struct seq_file *s,
 
        if (WARN_ON(genpd->status >= ARRAY_SIZE(status_lookup)))
                goto exit;
-       seq_printf(s, "%-30s  %-15s  ", genpd->name, status_lookup[genpd->status]);
+       seq_printf(s, "%-30s  %-15s ", genpd->name, status_lookup[genpd->status]);
 
        /*
         * Modifications on the list require holding locks on both
@@ -2109,8 +2109,8 @@ static int pm_genpd_summary_show(struct seq_file *s, void *data)
        struct generic_pm_domain *genpd;
        int ret = 0;
 
-       seq_puts(s, "    domain                      status         slaves\n");
-       seq_puts(s, "           /device                                      runtime status\n");
+       seq_puts(s, "domain                          status          slaves\n");
+       seq_puts(s, "    /device                                             runtime status\n");
        seq_puts(s, "----------------------------------------------------------------------\n");
 
        ret = mutex_lock_interruptible(&gpd_list_lock);