aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-23 14:37:41 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-03-24 23:01:31 +0200
commit558a6d5b592669898286d8e5900beba55eedc233 (patch)
treed4d0b53782826aaf3834f3d24db11beb8824b44f /clocks.c
parenta70d949d5a43ea59d48ebb098d61e3ff3b4c3a52 (diff)
downloadpowerdebug-558a6d5b592669898286d8e5900beba55eedc233.tar.gz
make 'selectedwindow' variable static
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clocks.c b/clocks.c
index ac9aaf5..4b5b0b7 100644
--- a/clocks.c
+++ b/clocks.c
@@ -20,7 +20,7 @@ static char clk_dir_path[PATH_MAX];
static char clk_name[NAME_MAX];
static int bold[MAX_LINES];
-int init_clock_details(bool dump)
+int init_clock_details(bool dump, int selectedwindow)
{
char *path = debugfs_locate_mpoint();
struct stat buf;
@@ -29,7 +29,7 @@ int init_clock_details(bool dump)
strcpy(clk_dir_path, path);
else {
if (!dump) {
- create_selectedwindow();
+ create_selectedwindow(selectedwindow);
sprintf(clock_lines[0], "Unable to locate debugfs "
"mount point. Mount debugfs "
"and try again..\n");
@@ -47,7 +47,7 @@ int init_clock_details(bool dump)
//strcpy(clk_dir_path, "/debug/clock"); // Hardcoded for testing..
if (stat(clk_dir_path, &buf)) {
if (!dump) {
- create_selectedwindow();
+ create_selectedwindow(selectedwindow);
sprintf(clock_lines[0], "Unable to find clock tree"
" information at %s.\n", clk_dir_path);
print_one_clock(0, clock_lines[0], 1, 0);