From patchwork Thu Jun 16 20:29:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2006 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1017A23F3F for ; Thu, 16 Jun 2011 20:31:55 +0000 (UTC) Received: from mail-vx0-f180.google.com (mail-vx0-f180.google.com [209.85.220.180]) by fiordland.canonical.com (Postfix) with ESMTP id D3199A18621 for ; Thu, 16 Jun 2011 20:31:54 +0000 (UTC) Received: by mail-vx0-f180.google.com with SMTP id 12so2092663vxk.11 for ; Thu, 16 Jun 2011 13:31:54 -0700 (PDT) Received: by 10.52.75.4 with SMTP id y4mr1869887vdv.167.1308256314660; Thu, 16 Jun 2011 13:31:54 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs211223vdc; Thu, 16 Jun 2011 13:31:54 -0700 (PDT) Received: by 10.227.59.210 with SMTP id m18mr1306447wbh.112.1308256308783; Thu, 16 Jun 2011 13:31:48 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by mx.google.com with ESMTP id o17si1375139wbh.14.2011.06.16.13.31.48; Thu, 16 Jun 2011 13:31:48 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.130; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.130 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.76.78]) by mwinf5d16 with ME id wkXf1g0031hMfSL03kXnKC; Thu, 16 Jun 2011 22:31:48 +0200 From: Daniel Lezcano To: patches@linaro.org Subject: [PATCH 21/28] remove unused 'verbose' option Date: Thu, 16 Jun 2011 22:29:50 +0200 Message-Id: <1308256197-29155-21-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308256197-29155-1-git-send-email-daniel.lezcano@linaro.org> References: <1308256197-29155-1-git-send-email-daniel.lezcano@linaro.org> Signed-off-by: Daniel Lezcano --- clocks.c | 8 +++----- powerdebug.c | 1 - powerdebug.h | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/clocks.c b/clocks.c index 9d8108c..e843b9e 100644 --- a/clocks.c +++ b/clocks.c @@ -283,7 +283,7 @@ static void destroy_clocks_info(void) } -int read_and_print_clock_info(int verbose, int hrow, int selected) +int read_and_print_clock_info(int hrow, int selected) { print_one_clock(0, "Reading Clock Tree ...", 1, 1); @@ -302,7 +302,7 @@ int read_and_print_clock_info(int verbose, int hrow, int selected) else selected = 0; - print_clock_info(verbose, hrow, selected); + print_clock_info(hrow, selected); hrow = (hrow < old_clock_line_no) ? hrow : old_clock_line_no - 1; return hrow; @@ -380,12 +380,10 @@ static void add_clock_details_recur(struct clock_info *clock, strcpy(clock_lines[clock_line_no], ""); } -void print_clock_info(int verbose, int hrow, int selected) +void print_clock_info(int hrow, int selected) { int i, count = 0, delta; - (void)verbose; - print_clock_header(); for (i = 0; i < clocks_info->num_children; i++) diff --git a/powerdebug.c b/powerdebug.c index 71c37f2..7d89a7b 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -271,7 +271,6 @@ int mainloop(struct powerdebug_options *options, if (refreshwin) command = REFRESH_WINDOW; hrow = read_and_print_clock_info( - options->verbose, highlighted_row, command); highlighted_row = hrow; diff --git a/powerdebug.h b/powerdebug.h index d2c0954..535f194 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -31,8 +31,8 @@ enum {CLOCK_SELECTED = 1, REFRESH_WINDOW}; extern void read_and_dump_clock_info(char *clk); extern int read_clock_info(char *clkpath); extern void find_parents_for_clock(char *clkname, int complete); -extern int read_and_print_clock_info(int verbose, int hrow, int selected); -extern void print_clock_info(int verbose, int hrow, int selected); +extern int read_and_print_clock_info(int hrow, int selected); +extern void print_clock_info(int hrow, int selected); extern void print_string_val(char *name, char *val); extern void print_clock_header(void); extern void print_one_clock(int line, char *str, int bold, int highlight);