summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authoryangdongdong <yangdongdong@xiaomi.com>2015-08-08 11:59:59 +0800
committerDmitry Shmidt <dimitrysh@google.com>2017-03-16 10:42:16 -0700
commit152a401d269358de1875789a5d4e85ea8fc3775b (patch)
treec3aa5479e789d80b2eb486cb800dd7876d792178 /drivers/base
parent870382b806a424c63a02b43a3195953b833395f3 (diff)
ANDROID: power: align wakeup_sources format
This aligns every column of elements in wakeup_sources to conveniently check any specific column for suspicious power consumption wakeup source or for other easily human readable purpose. Change-Id: Iac8b0538170fcc0cca9f6857c15d9a4c62c8865e Signed-off-by: yangdongdong <yangdongdong@xiaomi.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/wakeup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
index 09c07f519952..0e494108c20c 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -1042,7 +1042,7 @@ static int print_wakeup_source_stats(struct seq_file *m,
active_time = ktime_set(0, 0);
}
- seq_printf(m, "%-12s\t%lu\t\t%lu\t\t%lu\t\t%lu\t\t%lld\t\t%lld\t\t%lld\t\t%lld\t\t%lld\n",
+ seq_printf(m, "%-32s\t%lu\t\t%lu\t\t%lu\t\t%lu\t\t%lld\t\t%lld\t\t%lld\t\t%lld\t\t%lld\n",
ws->name, active_count, ws->event_count,
ws->wakeup_count, ws->expire_count,
ktime_to_ms(active_time), ktime_to_ms(total_time),
@@ -1062,7 +1062,7 @@ static int wakeup_sources_stats_show(struct seq_file *m, void *unused)
{
struct wakeup_source *ws;
- seq_puts(m, "name\t\tactive_count\tevent_count\twakeup_count\t"
+ seq_puts(m, "name\t\t\t\t\tactive_count\tevent_count\twakeup_count\t"
"expire_count\tactive_since\ttotal_time\tmax_time\t"
"last_change\tprevent_suspend_time\n");