From patchwork Fri Aug 14 08:53:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: check.kernel@gmail.com X-Patchwork-Id: 7013091 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7C687C05AC for ; Fri, 14 Aug 2015 08:54:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49B2C207D5 for ; Fri, 14 Aug 2015 08:54:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 435CE207D0 for ; Fri, 14 Aug 2015 08:54:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753639AbbHNIyc (ORCPT ); Fri, 14 Aug 2015 04:54:32 -0400 Received: from mail-pd0-f195.google.com ([209.85.192.195]:32972 "EHLO mail-pd0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121AbbHNIya (ORCPT ); Fri, 14 Aug 2015 04:54:30 -0400 Received: by pdrg1 with SMTP id g1so3352331pdr.0; Fri, 14 Aug 2015 01:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=DOSoh85FEJ6CYqh6a9pXjWJmARfB1lUQY4cc5uEV6sA=; b=FG1uRhV7lTVNMaXZ4605cNXfqczWHKYr00Z/EngH3p7NrWzScfVkbrys7QxeMxZUos 8iVSIVpMlWOY/siWyDUm+4dVKqX3VIOwsFAcKKpTfWre83a1dzsHCV3fMYE11UIvBOnq FP8JXUbKyiJrwaPeaaPX+Eiq6T2k/mQDw8ExNv2JGo+dTTs35BB3UVBVatPbbXX4cF75 AC2opi7SH9oBE4GR1WfNOcnkTO2Y2yzZ6WCIwuciZeXdtOjSFDOa/uTAdEfk3QSU78dI /AmqUEY/gwb+2wAm9+zf2l5uiEUFZwVEL2dapHIolSsn+MCEpgL3sMMyU5xiBAmJCeoU Kn6A== X-Received: by 10.70.88.2 with SMTP id bc2mr83054637pdb.52.1439542469945; Fri, 14 Aug 2015 01:54:29 -0700 (PDT) Received: from yangdongdong-OptiPlex-9010.mioffice.cn (static-ip-82-100-134-202.rev.dyxnet.com. [202.134.100.82]) by smtp.gmail.com with ESMTPSA id mb10sm5224943pdb.91.2015.08.14.01.54.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Aug 2015 01:54:27 -0700 (PDT) From: To: "Rafael J. Wysocki" , Greg Kroah-Hartman , Len Brown , Pavel Machek , Ethan du , Linghua Gu Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Yang Subject: Date: Fri, 14 Aug 2015 16:53:52 +0800 Message-Id: <1439542432-487-1-git-send-email-check.kernel@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From c24574f0f0fc34204353a73f431d2be6908e90b2 Mon Sep 17 00:00:00 2001 From: yangdongdong Date: Wed, 12 Aug 2015 12:10:51 +0800 Subject: [PATCH] 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 readable purpose. Signed-off-by: Dongdong Yang Signed-off-by: Linghua Gu --- drivers/base/power/wakeup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 51f15bc..b6fe9e6 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -998,7 +998,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), @@ -1018,7 +1018,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");