aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:12 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 03:01:13 +0300
commit6a0f6fbe84aef41bf313b8bf6ebd43c383682a4d (patch)
tree888067322a62bbc8658ada851875f8626bfd8aff
parentc5a65bfaeab54c6868eedb8b10f32a8375d6f6e7 (diff)
downloadpowerdebug-6a0f6fbe84aef41bf313b8bf6ebd43c383682a4d.tar.gz
Return an error instead of exiting deeper in the code
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--clocks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clocks.c b/clocks.c
index 5c5c24f..9577267 100644
--- a/clocks.c
+++ b/clocks.c
@@ -64,7 +64,7 @@ int init_clock_details(bool dump, int selectedwindow)
fprintf(stderr, "powerdebug: Unable to locate debugfs "
"mount point. Mount debugfs and try "
"again..\n");
- exit(1);
+ return -1;
}
}
@@ -81,7 +81,7 @@ int init_clock_details(bool dump, int selectedwindow)
} else {
fprintf(stderr, "powerdebug: Unable to find clock tree"
" information at %s.\n", clk_dir_path);
- exit(1);
+ return -1;
}
}