From patchwork Wed Sep 4 14:30:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 825810 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [195.130.137.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEA161DC1A4 for ; Wed, 4 Sep 2024 14:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.89 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460262; cv=none; b=M5F/aBNfr2KvPTFnI0juQyATygWawDxoCd8Dr87jwf7snnWyZkcqPs7LFNIBnJp3rsrlp4+FX54nLml+Dj59TQtvL8lmnJ/Aomi32JqeT4CQnsmU64Rsfh/CxPTzbdLXb3zq3hbI822JY0ICl3YaQrXWBYxc1VCm7vjdhCq8pUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460262; c=relaxed/simple; bh=TLzi08QC8bjHucQYd9nHMqZdLQogig1Z9ZHUdaPJKOc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UwX3rR3Q6Oz3uBYM4N3iEUiNBojcfTIrXXkCDjycGsp8WMvT0vW+eE9dx7rybnIv8BjKLwiJCtQhwDAsjetNc51mDH/0IrxNHuu6KLx2dvtascgj4Rcneo3MdacJupkXRLSmmTF4En6W0jKJAtTNRZxGGqig/V23I31u6chnJsQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:ef52:68c5:eac1:f6b5]) by laurent.telenet-ops.be with cmsmtp id 8EWv2D0093m5in101EWv6D; Wed, 04 Sep 2024 16:30:57 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1slr24-0028JN-H5; Wed, 04 Sep 2024 16:30:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1slr27-004MyA-7r; Wed, 04 Sep 2024 16:30:55 +0200 From: Geert Uytterhoeven To: Ulf Hansson , Viresh Kumar , "Rafael J . Wysocki" , Dmitry Osipenko , Dmitry Baryshkov , Jagadeesh Kona , Taniya Das , Abel Vesa Cc: linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/4] pmdomain: core: Harden inter-column space in debug summary Date: Wed, 4 Sep 2024 16:30:45 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 45fbc464b047b3fb ("PM: domains: Add "performance" column to debug summary") Signed-off-by: Geert Uytterhoeven --- drivers/pmdomain/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 6a8c814f967dda35..afa4e75863a40b49 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3352,7 +3352,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 From patchwork Wed Sep 4 14:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 825809 Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE5DC1DC07F for ; Wed, 4 Sep 2024 14:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460263; cv=none; b=CxHyepFS2+wvDhiy6wL4uuRNC9aZZhdaOFfOVGptGog+4uJSbACDf/finVcBSoDnUCkWpfnyTkoy7TMx3QtqDEBJxjy3yCiBNG5HTeJlf3Gc/mbxOrv+g0iQkIuZeK0IX5Kg/6k43OCxY7UJV0YkKESW/IIMBRZKKjyLot6LIWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460263; c=relaxed/simple; bh=ck5HEjZevSTu8uCue2LCvHvhdo2sBkHkQBl5O3C9hmc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VjT2jDsnI//2Y2Lx2TrDxMHVgXD57SzelijHrkrfwbZCpMJGveFlTDs7EvwKBvkkOZOsMGTHS925Fp7FPraoczgmHbuhsY9aXoapPsie9FGTf2/ppaXxEOyUcu0zNzOe2koUxqFvmedpsbYSs20OKJF/bouNdo+gq8zs17JCyWU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:ef52:68c5:eac1:f6b5]) by albert.telenet-ops.be with cmsmtp id 8EWv2D00C3m5in106EWvSM; Wed, 04 Sep 2024 16:30:57 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1slr24-0028JP-Hu; Wed, 04 Sep 2024 16:30:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1slr27-004MyD-8m; Wed, 04 Sep 2024 16:30:55 +0200 From: Geert Uytterhoeven To: Ulf Hansson , Viresh Kumar , "Rafael J . Wysocki" , Dmitry Osipenko , Dmitry Baryshkov , Jagadeesh Kona , Taniya Das , Abel Vesa Cc: linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/4] pmdomain: core: Fix "managed by" alignment in debug summary Date: Wed, 4 Sep 2024 16:30:46 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The "performance" column contains variable-width values. Hence when their printed values contain more than one digit, all values in successive columns become misaligned. Fix this by formatting it as a fixed-width field. Adjust successive spaces and field widths to retain the exiting layout. Fixes: 0155aaf95a2a09ba ("PM: domains: Add the domain HW-managed mode to the summary") Signed-off-by: Geert Uytterhoeven --- Tested by printing pseudo-random numbers instead of the actual performance_state, as the latter is always zero for me. --- drivers/pmdomain/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index afa4e75863a40b49..912bdc131fc0e2b1 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3317,7 +3317,7 @@ static void mode_status_str(struct seq_file *s, struct device *dev) gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%20s", gpd_data->hw_mode ? "HW" : "SW"); + seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); } static void perf_status_str(struct seq_file *s, struct device *dev) @@ -3325,7 +3325,7 @@ static void perf_status_str(struct seq_file *s, struct device *dev) struct generic_pm_domain_data *gpd_data; gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_put_decimal_ull(s, "", gpd_data->performance_state); + seq_printf(s, "%-10u ", gpd_data->performance_state); } static int genpd_summary_one(struct seq_file *s, From patchwork Wed Sep 4 14:30:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 825487 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AEB571DCB2C for ; Wed, 4 Sep 2024 14:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460268; cv=none; b=KXXFEtNEwDm11Ebjd8is/dwxdbYYHBAJDDdXvSikVquH2FLdBEGjZBlEg14Qq6mv7Fi2CA1/WRoL2s1xs7efC+Q6zVUBFXwxRwZ2d9mNqzbVqs+UfLPOVMdoOu/qedXZQdjMa+hgR7zd4sNsh9yWN1Ut4QpD19F3u4vXuJPe2ck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460268; c=relaxed/simple; bh=PvIExtq/8JZw+HWVjYfMbNbIIf4VpurgjJG5pvlFfk8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q1zyS93tYp0s9ZAu0S4KOtVz9GushvCSkpOv/a3wqxZT6AhQh3IqnQCW0YVrdLLsNzTIGCzgJXD6xWivsHOuU+yQmRBNGoCRgSIOOd5OvpNEx1PQ0s9IcTFlOmawgiL3LW7j7LTcwNyUD7G3bBrRp4CkcLow6cBLZllXVeH3GNA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:ef52:68c5:eac1:f6b5]) by baptiste.telenet-ops.be with cmsmtp id 8EWv2D00A3m5in101EWv7F; Wed, 04 Sep 2024 16:30:58 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1slr24-0028JT-If; Wed, 04 Sep 2024 16:30:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1slr27-004MyI-AF; Wed, 04 Sep 2024 16:30:55 +0200 From: Geert Uytterhoeven To: Ulf Hansson , Viresh Kumar , "Rafael J . Wysocki" , Dmitry Osipenko , Dmitry Baryshkov , Jagadeesh Kona , Taniya Das , Abel Vesa Cc: linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/4] pmdomain: core: Move mode_status_str() Date: Wed, 4 Sep 2024 16:30:47 +0200 Message-Id: <18ed6fb2bb92860f3af1bc7e5e4a01e9dacf2126.1725459707.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Move mode_status_str() below perf_status_str(), to make declaration order match calling order of the various *_status_str() helpers. While at it, add a blank line for consistency among the three helpers. Signed-off-by: Geert Uytterhoeven --- drivers/pmdomain/core.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 912bdc131fc0e2b1..2233daaa4168be14 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3311,21 +3311,22 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev) seq_printf(s, "%-25s ", p); } -static void mode_status_str(struct seq_file *s, struct device *dev) +static void perf_status_str(struct seq_file *s, struct device *dev) { struct generic_pm_domain_data *gpd_data; gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); + seq_printf(s, "%-10u ", gpd_data->performance_state); } -static void perf_status_str(struct seq_file *s, struct device *dev) +static void mode_status_str(struct seq_file *s, struct device *dev) { struct generic_pm_domain_data *gpd_data; gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%-10u ", gpd_data->performance_state); + + seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); } static int genpd_summary_one(struct seq_file *s, From patchwork Wed Sep 4 14:30:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 825488 Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE6881DC1A2 for ; Wed, 4 Sep 2024 14:30:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460262; cv=none; b=o131egTenRpoeI8yFnSqEougyLIOYZhrLj1b/lafI1aap6fO6XVfTvG5EkKDhjY4aqnN8b/s/g60c4tQ5l8cQ1hI0kduILjC0tZlZoiNFypmatHGnkeVa/B06sUpA16p8oJQIy0397u2h5OQ7Gop9aJwifQYA6H5uNuSuhDOUmY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725460262; c=relaxed/simple; bh=IHJiZt3d3WP1/U0rfOhft2OuptnfKHxTsCu5JXAwzBY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ba6OcobWIn5x04FVZtqB31bXTZmMhTGyCzZZRU6bXvEqFA/7gbmeDzuc6er3HQnHNrUmScEiG0Pj9wSgbIi/llMnE5MdE/SqRRCC6t3nNPxWTpcMcrgjZoGhhcW7o/JLk3ybXQZrn/Z2p7KfE8vl9fPj7L6FHjN2pB6EMDSOhDQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:ef52:68c5:eac1:f6b5]) by albert.telenet-ops.be with cmsmtp id 8EWv2D00D3m5in106EWvSN; Wed, 04 Sep 2024 16:30:57 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1slr24-0028JW-Jx; Wed, 04 Sep 2024 16:30:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1slr27-004MyM-BS; Wed, 04 Sep 2024 16:30:55 +0200 From: Geert Uytterhoeven To: Ulf Hansson , Viresh Kumar , "Rafael J . Wysocki" , Dmitry Osipenko , Dmitry Baryshkov , Jagadeesh Kona , Taniya Das , Abel Vesa Cc: linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 4/4] pmdomain: core: Reduce debug summary table width Date: Wed, 4 Sep 2024 16:30:48 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Commit 9094e53ff5c86ebe ("pmdomain: core: Use dev_name() instead of kobject_get_path() in debugfs") severely shortened the names of devices in a PM Domain. Now the most common format[1] consists of a 32-bit unit-address (8 characters), followed by a dot and a node name (20 characters for "air-pollution-sensor" and "interrupt-controller", which are the longest generic node names documented in the Devicetree Specification), for a typical maximum of 29 characters. This offers a good opportunity to reduce the table width of the debug summary: - Reduce the device name field width from 50 to 30 characters, which matches the PM Domain name width, - Reduce the large inter-column space between the "performance" and "managed by" columns. Visual impact: - The "performance" column now starts at a position that is a multiple of 16, just like the "status" and "children" columns, - All of the "/device", "runtime status", and "managed by" columns are now indented 4 characters more than the columns right above them, - Everything fits in (one less than) 80 characters again ;-) [1] Note that some device names (e.g. TI AM335x interconnect target modules) do not follow this convention, and may be much longer, but these didn't fit in the old 50-character column width either. Signed-off-by: Geert Uytterhoeven --- On the Koelsch development board with an R-Car M2-W SoC, the contents of /sys/kernel/debug/pm_genpd/pm_genpd_summary change from: domain status children performance /device runtime status managed by ------------------------------------------------------------------------------------------------------------ clock-controller on 0 sgx off-0 0 sh-4a off-0 0 ca15-cpu1 on 0 ca15-cpu0 on 0 ca15-scu on 0 ca15-cpu0, ca15-cpu1 always-on on 0 ca15-scu, sh-4a, sgx e60b0000.i2c suspended 0 SW ffca0000.timer suspended 0 SW e6590100.usb-phy-controller unsupported 0 SW e6050000.gpio suspended 0 SW e6051000.gpio suspended 0 SW e6052000.gpio active 0 SW e6053000.gpio active 0 SW e6054000.gpio suspended 0 SW e6055000.gpio active 0 SW e6055400.gpio active 0 SW e6055800.gpio active 0 SW ee090000.pci active 0 SW ee0d0000.pci active 0 SW e6700000.dma-controller active 0 SW e6720000.dma-controller active 0 SW ec700000.dma-controller suspended 0 SW ec720000.dma-controller suspended 0 SW e65a0000.dma-controller suspended 0 SW e65b0000.dma-controller suspended 0 SW e6e60000.serial active 0 SW e6e68000.serial active 0 SW ee300000.sata active 0 SW e6b10000.spi suspended 0 SW e6e20000.spi suspended 0 SW e6518000.i2c suspended 0 SW e6530000.i2c suspended 0 SW e6520000.i2c suspended 0 SW e61f0000.thermal active 0 SW ec500000.sound suspended 0 SW e61c0000.interrupt-controller active 0 SW ee700000.ethernet active 0 SW ee100000.mmc suspended 0 SW ee140000.mmc suspended 0 SW ee160000.mmc suspended 0 SW to: domain status children performance /device runtime status managed by ------------------------------------------------------------------------------ clock-controller on 0 sgx off-0 0 sh-4a off-0 0 ca15-cpu1 on 0 ca15-cpu0 on 0 ca15-scu on 0 ca15-cpu0, ca15-cpu1 always-on on 0 ca15-scu, sh-4a, sgx e60b0000.i2c suspended 0 SW ffca0000.timer suspended 0 SW e6590100.usb-phy-controller unsupported 0 SW e6050000.gpio suspended 0 SW e6051000.gpio suspended 0 SW e6052000.gpio active 0 SW e6053000.gpio active 0 SW e6054000.gpio suspended 0 SW e6055000.gpio active 0 SW e6055400.gpio active 0 SW e6055800.gpio active 0 SW ee090000.pci active 0 SW ee0d0000.pci active 0 SW e6700000.dma-controller active 0 SW e6720000.dma-controller active 0 SW ec700000.dma-controller suspended 0 SW ec720000.dma-controller suspended 0 SW e65a0000.dma-controller suspended 0 SW e65b0000.dma-controller suspended 0 SW e6e60000.serial active 0 SW e6e68000.serial active 0 SW ee300000.sata active 0 SW e6b10000.spi suspended 0 SW e6e20000.spi suspended 0 SW e6518000.i2c suspended 0 SW e6530000.i2c suspended 0 SW e6520000.i2c suspended 0 SW e61f0000.thermal active 0 SW ec500000.sound suspended 0 SW e61c0000.interrupt-controller active 0 SW ee700000.ethernet active 0 SW ee100000.mmc suspended 0 SW ee140000.mmc suspended 0 SW ee160000.mmc suspended 0 SW --- drivers/pmdomain/core.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 2233daaa4168be14..2c51de5d58372d3d 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3308,7 +3308,7 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev) else WARN_ON(1); - seq_printf(s, "%-25s ", p); + seq_printf(s, "%-26s ", p); } static void perf_status_str(struct seq_file *s, struct device *dev) @@ -3326,7 +3326,7 @@ static void mode_status_str(struct seq_file *s, struct device *dev) gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); - seq_printf(s, "%9s", gpd_data->hw_mode ? "HW" : "SW"); + seq_printf(s, "%2s", gpd_data->hw_mode ? "HW" : "SW"); } static int genpd_summary_one(struct seq_file *s, @@ -3353,7 +3353,7 @@ static int genpd_summary_one(struct seq_file *s, else snprintf(state, sizeof(state), "%s", status_lookup[genpd->status]); - seq_printf(s, "%-30s %-49s %u", genpd->name, state, genpd->performance_state); + seq_printf(s, "%-30s %-30s %u", genpd->name, state, genpd->performance_state); /* * Modifications on the list require holding locks on both @@ -3369,7 +3369,7 @@ static int genpd_summary_one(struct seq_file *s, } list_for_each_entry(pm_data, &genpd->dev_list, list_node) { - seq_printf(s, "\n %-50s ", dev_name(pm_data->dev)); + seq_printf(s, "\n %-30s ", dev_name(pm_data->dev)); rtpm_status_str(s, pm_data->dev); perf_status_str(s, pm_data->dev); mode_status_str(s, pm_data->dev); @@ -3387,9 +3387,9 @@ static int summary_show(struct seq_file *s, void *data) struct generic_pm_domain *genpd; int ret = 0; - seq_puts(s, "domain status children performance\n"); - seq_puts(s, " /device runtime status managed by\n"); - seq_puts(s, "------------------------------------------------------------------------------------------------------------\n"); + seq_puts(s, "domain status children performance\n"); + seq_puts(s, " /device runtime status managed by\n"); + seq_puts(s, "------------------------------------------------------------------------------\n"); ret = mutex_lock_interruptible(&gpd_list_lock); if (ret)