aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-08 23:30:01 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-06-08 23:30:01 +0200
commit7b16b8192500916604f5e20185f69c6da82f9040 (patch)
tree569c27bc155e4a9cb7d7cd288b75a4e0dbec5625
parentc7891940116f41a78800977965f309ab6a76304a (diff)
downloadpowerdebug-7b16b8192500916604f5e20185f69c6da82f9040.tar.gz
remove unused 'verbose' option
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--clocks.c8
-rw-r--r--powerdebug.c1
-rw-r--r--powerdebug.h4
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);