From patchwork Sun Sep 24 20:00:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 114151 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1854882qgf; Sun, 24 Sep 2017 13:01:48 -0700 (PDT) X-Received: by 10.98.79.157 with SMTP id f29mr5408402pfj.9.1506283308144; Sun, 24 Sep 2017 13:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506283308; cv=none; d=google.com; s=arc-20160816; b=ntGxNDEcqp3MWW9NYAgMZA4TmSHpkAmVtk7BvdTJR9lH/kPkmpNt07Ri44g6w/7lO/ mqDyLYZDgis0+5QeCIJ183q6BUBt3Wm1KfCQJCXmMUd4SX3p8vhCngbotlxHydHn3Kb9 GMUFtd0IRxf4kUI4JQyyTCRqfXSUIUqCz8Rd5oaBtHtW6kgzgBw8PhFCTxyUDaxI8pQh hHKv1baOm+iVyVOE6s7Qym+sVt65eCnxD78xze+f6UiQMinO8r/BSUqaWxjIosNiwfW3 KSwXJE46cbq6LXlWBJV3yNBD/JedZ5BtW5wVGvI/SaSlVIkMVlrmAKkdwUsoutvFPYql elXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Z7jxGc+sSe2/sAo8NyeM6/yfNWgiSW/bDrjIpnEllvA=; b=eKvtTHT2+7GcJm3yYlNT4wnIUwfCP4L/Ms6BjDXz1g+72LUSiUwRLXlZHeFIm7lYYJ 2ncZLayyuZbu6IO2COM45OguoSi0iUdC1iTVVNdgh2rYf8uwj/9BR1fXgAn02AwpD3A1 S/zCQ895hT3z6cC2vyM+14fH/22h3pk1K5QHWtgY15o1CNQlY88iI5+iZaMVoHNPTBf0 gvqzHtRPECT0bSw3FVMijTeGA7oRgzs+T4X1hA/94jwzbMRmfmzOJXOkdR0LDDphAuWl a3NGCF9bOZRr2dMIkf9GbLnd5aEIo+M0J3vgxjIMOuD/0zRjc+XnRzhBINmliEaJJR8A 2fCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gv72TBUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si3011308pge.537.2017.09.24.13.01.47; Sun, 24 Sep 2017 13:01:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gv72TBUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753097AbdIXUBq (ORCPT + 26 others); Sun, 24 Sep 2017 16:01:46 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:57192 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbdIXUAq (ORCPT ); Sun, 24 Sep 2017 16:00:46 -0400 Received: by mail-wr0-f181.google.com with SMTP id r74so4608392wrb.13 for ; Sun, 24 Sep 2017 13:00:45 -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=Z7jxGc+sSe2/sAo8NyeM6/yfNWgiSW/bDrjIpnEllvA=; b=gv72TBUvkps70Yrqi0dSs4PFk7SAOgOOtUpoKchXl/E6uKJ6ggHNWop6DrV2CSvj8Q o/nn1CzhOklErTvYPuOefC4b1BbE2gFcUYGGzLVCuzCZheeLm9CRjSkOD3hKHxXo6z6y ClV54lY1gCw8WMDTrmEqIxreOOF4EVqFpWYr8StBqywRGqwQru6j8yDYhqUZjQtdv8Wo DvE+6Z9FQMvYi1H3u17WCBel/5CCIS+/+3Xvo/5jJ1lvTqCQ8DvyXRwgA+7l/+4dNLCh hxi2e/9Xo56INGZd8XpYTZkcsehle+F9smVF6o6tEh8/uwWdgZs+tEuzjQlYSyKFbKHU mReg== 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=Z7jxGc+sSe2/sAo8NyeM6/yfNWgiSW/bDrjIpnEllvA=; b=leZn3lR2C56jye/7skE5qEOGSFYkHyhiQiy2GF+S7pro+xNad/9XtJUy6HXyzm9xwN 1rUgIZLx6KOJHKSaXJ+4H7cLW0yVqf11FMXhA/swGfc1IHK70DY8VFu/rRhCwhaG4F2I iJlgQ2vRZoQ+3C3KScBNAoVAucZYQJBMjHbbDI1f5wVJB3602gK99PfJXyvFyLLVus97 SbOESDbxS7eMkwKThTGdD+cvEWu+bnjZ/E3Fr7kX5wh1FrujMTrVq5QfNOTgB4RhQCPa w+NxEBTZ4F8RubCe3/eRBk2e7/uHHiAyCYoWIq9HbTsmJd77cq9ci2E114DqkMMByNVw doZQ== X-Gm-Message-State: AHPjjUi+dmSkD1tBlddqzyGvHwDQcjYCgJFmHgsNX3mvia2i99EoBUGR ZcpFE8GEbKLZTGO5RDSGJAp+1A== X-Google-Smtp-Source: AOwi7QBongu5Gw4y1GTay3jA9+WEWgOPEl3hEYLBHK2PMqpi4n9/RTD1WGb8mDvI5LOXulzD/gjWwQ== X-Received: by 10.223.166.21 with SMTP id k21mr3907430wrc.261.1506283245229; Sun, 24 Sep 2017 13:00:45 -0700 (PDT) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id j5sm6786144wmg.8.2017.09.24.13.00.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Sep 2017 13:00:44 -0700 (PDT) From: Jerome Brunet To: Stephen Boyd , Michael Turquette Cc: Jerome Brunet , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Linus Walleij , Quentin Schulz , Kevin Hilman Subject: [PATCH v4 07/10] clk: cosmetic changes to clk_summary debugfs entry Date: Sun, 24 Sep 2017 22:00:27 +0200 Message-Id: <20170924200030.6227-8-jbrunet@baylibre.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170924200030.6227-1-jbrunet@baylibre.com> References: <20170924200030.6227-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. clock enable_cnt prepare_cnt protect_cnt rate accuracy phase ---------------------------------------------------------------------------------------------------- wifi32k 1 1 0 32768 0 0 vcpu 0 0 0 2016000000 0 0 xtal 5 5 0 24000000 0 0 This patch reduce the width a bit: enable prepare protect clock count count count rate accuracy phase ---------------------------------------------------------------------------------------- wifi32k 1 1 0 32768 0 0 vcpu 0 0 0 2016000000 0 0 xtal 5 5 0 24000000 0 0 Acked-by: Linus Walleij Tested-by: Quentin Schulz Signed-off-by: Jerome Brunet --- drivers/clk/clk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.13.5 diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9d371088bb24..4693d5e20327 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2150,7 +2150,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, @@ -2177,8 +2177,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();