aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:06 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 02:48:30 +0300
commit897f73360a471a12bc522fdd22832891294d1ac7 (patch)
tree8451bbcc793a9d1759b67402892d81d7e34995de
parentb57467126ac56a59aef4f7627f4b4c0427341179 (diff)
downloadpowerdebug-897f73360a471a12bc522fdd22832891294d1ac7.tar.gz
Further reduce dump variable usage
The modified function are used on the display mode context, we no longer need to pass the dump option. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--clocks.c4
-rw-r--r--powerdebug.c3
-rw-r--r--powerdebug.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/clocks.c b/clocks.c
index 4b5b0b7..c42f589 100644
--- a/clocks.c
+++ b/clocks.c
@@ -146,7 +146,7 @@ static void dump_all_parents(char *clkarg, bool dump)
}
}
-void find_parents_for_clock(char *clkname, int complete, bool dump)
+void find_parents_for_clock(char *clkname, int complete)
{
char name[256];
@@ -161,7 +161,7 @@ void find_parents_for_clock(char *clkname, int complete, bool dump)
}
sprintf(name, "Parents for \"%s\" Clock : \n", clkname);
print_one_clock(0, name, 1, 1);
- dump_all_parents(clkname, dump);
+ dump_all_parents(clkname, false);
}
int read_and_print_clock_info(int verbose, int hrow, int selected)
diff --git a/powerdebug.c b/powerdebug.c
index ca7db7a..3832da6 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -294,8 +294,7 @@ int mainloop(struct powerdebug_options *options,
enter_hit = false;
} else
find_parents_for_clock(clkname_str,
- enter_hit,
- options->dump);
+ enter_hit);
}
}
diff --git a/powerdebug.h b/powerdebug.h
index 7ec7d96..d2bd4ec 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -35,7 +35,7 @@ extern struct clock_info *read_clock_info_recur(char *clkpath, int level,
struct clock_info *parent);
extern void dump_clock_info(struct clock_info *clk, int level, int bmp);
extern void insert_children(struct clock_info **parent, struct clock_info *clk);
-extern void find_parents_for_clock(char *clkname, int complete, bool dump);
+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 void print_string_val(char *name, char *val);