From patchwork Tue Nov 21 18:49:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 10068763 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 B309B6038F for ; Tue, 21 Nov 2017 18:49:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A64B9298B0 for ; Tue, 21 Nov 2017 18:49:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B8922990F; Tue, 21 Nov 2017 18:49:46 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5229B298B0 for ; Tue, 21 Nov 2017 18:49:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF9D96E592; Tue, 21 Nov 2017 18:49:45 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 09BEB6E592 for ; Tue, 21 Nov 2017 18:49:43 +0000 (UTC) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Nov 2017 10:49:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.44,432,1505804400"; d="scan'208"; a="1246938047" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga002.fm.intel.com with SMTP; 21 Nov 2017 10:49:41 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 21 Nov 2017 20:49:40 +0200 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Date: Tue, 21 Nov 2017 20:49:29 +0200 Message-Id: <20171121184930.25826-4-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171121184930.25826-1-ville.syrjala@linux.intel.com> References: <20171121184930.25826-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Cc: Dhinakaran Pandiyan Subject: [Intel-gfx] [PATCH i-g-t 4/5] tools/intel_watermark: Clean up formatting X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Ville Syrjälä Align the comlums properly, and replace some of the whitespace in the printf()s with properly sized fields. Cc: Dhinakaran Pandiyan Cc: Tvrtko Ursulin Signed-off-by: Ville Syrjälä --- tools/intel_watermark.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c index a18b5c8e83c2..3c70f4ec54fb 100644 --- a/tools/intel_watermark.c +++ b/tools/intel_watermark.c @@ -312,54 +312,54 @@ static void skl_wm_dump(void) printf("\n"); for (level = 0; level < num_levels; level++) { - printf("%5d ", level); + printf("%5d", level); for (plane = 0; plane < num_planes; plane++) { blocks = REG_DECODE1(wm[level][pipe][plane], 0, 9); lines = REG_DECODE1(wm[level][pipe][plane], 14, 5); enable = REG_DECODE1(wm[level][pipe][plane], 31, 1); - printf("%3d%c", blocks, endis_ast(enable)); + printf("%5d%c", blocks, endis_ast(enable)); if (!REG_DECODE1(wm[level][pipe][plane], 30, 1)) - printf("(%2d) ", lines); + printf("(%2d)", lines); else - printf("(--) "); + printf("(--)"); } printf("\n"); } - printf("TRANS: "); + printf("TRANS"); for (plane = 0; plane < num_planes; plane++) { blocks = REG_DECODE1(wm_trans[pipe][plane], 0, 9); lines = REG_DECODE1(wm_trans[pipe][plane], 14, 5); enable = REG_DECODE1(wm_trans[pipe][plane], 31, 1); - printf("%3d%c", blocks, endis_ast(enable)); + printf("%5d%c", blocks, endis_ast(enable)); if (!REG_DECODE1(wm_trans[pipe][plane], 30, 1)) - printf("(%2d) ", lines); + printf("(%2d)", lines); else - printf("(--) "); + printf("(--)"); } printf("\nDDB allocation:"); - printf("\nstart "); + printf("\nstart"); for (plane = 0; plane < num_planes; plane++) { start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10); - printf("%7d ", start); + printf("%10d", start); } - printf("\nend "); + printf("\n end"); for (plane = 0; plane < num_planes; plane++) { end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10); - printf("%7d ", end); + printf("%10d", end); } - printf("\nsize "); + printf("\n size"); for (plane = 0; plane < num_planes; plane++) { start = REG_DECODE1(buf_cfg[pipe][plane], 0, 10); end = REG_DECODE1(buf_cfg[pipe][plane], 16, 10); size = end - start + 1; - printf("%7d ", (end == 0 && size == 1) ? 0 : size); + printf("%10d", (end == 0 && size == 1) ? 0 : size); } printf("\n\n\n");