From patchwork Tue Mar 21 18:33:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9637351 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7FC6D601E9 for ; Tue, 21 Mar 2017 18:43:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 751A828304 for ; Tue, 21 Mar 2017 18:43:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A03D28405; Tue, 21 Mar 2017 18:43:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F8612830A for ; Tue, 21 Mar 2017 18:43:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933017AbdCUSnO (ORCPT ); Tue, 21 Mar 2017 14:43:14 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:35551 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932606AbdCUSlg (ORCPT ); Tue, 21 Mar 2017 14:41:36 -0400 Received: by mail-wr0-f171.google.com with SMTP id g10so117555328wrg.2 for ; Tue, 21 Mar 2017 11:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yqvrgF5bgNPnuj6//YJfh3M6l4lyaJ7HoR/db6J5TRM=; b=2FU+qS/d/RRCSBUN1L8JGnZT3kMH0xz0JO9u5SAw41+kewGTQki7THm0UZBqhZFDH1 wWtDgcXm5tceNQBML7t3rsb/HpZlHnA/S/xtl3vqCieeJyCs44tYIndyKugETBta8cIz M9D1ZZdLvwfh9YjH9SlL685WvE5hkSpHgp8L1HeHgj1KXwdCTpFtbn8aSF5uXzZYQNjV BLequsp6kd7lZrFd/PrKzAV7xtbSerVI/XnUQeaQ1i+gs1oBJI12EOeaSSjKTeRSK66k jsy3u6YalNCRFC9wcFb0cZRnyUlAMhg8TYhgweSl84d/fNmKMoRN2itHzIcW1Q60UhMJ RIvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yqvrgF5bgNPnuj6//YJfh3M6l4lyaJ7HoR/db6J5TRM=; b=rtYGxRvd3C2uqOjKS+tnOjPVClwoT37WsgH4RZstW8izGTqs+gcDGNLQmV1lqlnx7i xQKePAuKaWzVsezNxJU3qOIwSL+6tMvkg0OLuw3oJg2uQ2p6mUyAYRKixfQ253+6Bmf7 SWcotdmfiWjj7E7najwPpIwbvs0tCCA+cgyK7HMAtaIzQPHDqPz1kBspIuSWJS6zIw8P YF2DJ3EqDgkwGXdgFzUa3vAjPmoFWZhFwhzZDNqEByIvD7VhUdw+OWXywwcY3nmUadkx W0VUuwlq+jeigL3+4pPc9n5TTOUXRJL/mE3NNOmJIAf3aPfkPqzrlNfzdDGhwXOPSpd4 isfQ== X-Gm-Message-State: AFeK/H3NmBI86BU20U++GrK3LIjcC5JeKPr3sDFTlVR+WdUXNr+XFpDTIZ4ci6hHt1wwGz8s X-Received: by 10.223.169.45 with SMTP id u42mr30541466wrc.187.1490121220656; Tue, 21 Mar 2017 11:33:40 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id q12sm18667504wmd.8.2017.03.21.11.33.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Mar 2017 11:33:40 -0700 (PDT) From: Jerome Brunet To: Michael Turquette , Stephen Boyd , Kevin Hilman Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [RFC 6/7] clk: cosmetic changes to clk_summary debugfs entry Date: Tue, 21 Mar 2017 19:33:29 +0100 Message-Id: <20170321183330.26722-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170321183330.26722-1-jbrunet@baylibre.com> References: <20170321183330.26722-1-jbrunet@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP clk_summary debugfs entry was already well over the traditional 80 characters per line limit but it grew even larger with the addition of clock protection. Signed-off-by: Jerome Brunet --- drivers/clk/clk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 50798ef618d1..ec6d57e97bac 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2167,7 +2167,7 @@ static void clk_summary_show_one(struct seq_file *s, struct clk_core *c, if (!c) return; - seq_printf(s, "%*s%-*s %11d %12d %12d %11lu %10lu %-3d\n", + seq_printf(s, "%*s%-*s %7d %8d %8d %11lu %10lu %-3d\n", level * 3 + 1, "", 30 - level * 3, c->name, c->enable_count, c->prepare_count, c->protect_count, @@ -2194,8 +2194,9 @@ static int clk_summary_show(struct seq_file *s, void *data) struct clk_core *c; struct hlist_head **lists = (struct hlist_head **)s->private; - seq_puts(s, " clock enable_cnt prepare_cnt protect_cnt rate accuracy phase\n"); - seq_puts(s, "----------------------------------------------------------------------------------------------------\n"); + seq_puts(s, " enable prepare protect \n"); + seq_puts(s, " clock count count count rate accuracy phase\n"); + seq_puts(s, "----------------------------------------------------------------------------------------\n"); clk_prepare_lock();