From patchwork Wed Nov 15 14:38:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10059639 X-Patchwork-Delegate: geert@linux-m68k.org 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 D4A626019D for ; Wed, 15 Nov 2017 14:38:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C001629FDC for ; Wed, 15 Nov 2017 14:38:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4D6C2A089; Wed, 15 Nov 2017 14:38:38 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 68B0529FDC for ; Wed, 15 Nov 2017 14:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755545AbdKOOii (ORCPT ); Wed, 15 Nov 2017 09:38:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:36536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754013AbdKOOih (ORCPT ); Wed, 15 Nov 2017 09:38:37 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 873682190F; Wed, 15 Nov 2017 14:38:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 873682190F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=kbingham@kernel.org From: Kieran Bingham To: niklas.soderlund@ragnatech.se Cc: linux-renesas-soc@vger.kernel.org, kieran.bingham@ideasonboard.com, Kieran Bingham Subject: [PATCH 2/3] tools: 8camera-status: Expand to 9 cameras Date: Wed, 15 Nov 2017 14:38:30 +0000 Message-Id: <1510756711-6488-3-git-send-email-kbingham@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510756711-6488-1-git-send-email-kbingham@kernel.org> References: <1510756711-6488-1-git-send-email-kbingham@kernel.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kieran Bingham The 8th camera has an address conflict on the Salvator-X. As such it has been moved to the right by one address, Include this '9th' camera in the reporting status Signed-off-by: Kieran Bingham --- tools/8camera-status | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/8camera-status b/tools/8camera-status index cdfe76ef286f..846673578f09 100755 --- a/tools/8camera-status +++ b/tools/8camera-status @@ -1,7 +1,7 @@ #!/usr/bin/awk -f BEGIN { - for (x = 0; x <= 8; x++) + for (x = 0; x <= 9; x++) cameras[x] = "-" } @@ -67,15 +67,15 @@ function ParseProbe ( line ) function PrintCameras() { - print "====================================" - print "| 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 |" - for (x=1; x <= 8; x++) { + print "========================================" + print "| 1 | 2 | 3 | 4 | | 5 | 6 | 7 | 8 | 9 |" + for (x=1; x <= 9; x++) { printf "| " cameras[x] " " if (x == 4) printf("| ") } printf "|\n" - print "====================================" + print "=======================================" } function Summarise() {