From 6a0f6fbe84aef41bf313b8bf6ebd43c383682a4d Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Sat, 26 Mar 2011 22:06:12 +0100 Subject: Return an error instead of exiting deeper in the code Signed-off-by: Daniel Lezcano Signed-off-by: Amit Kucheria --- clocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clocks.c') 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; } } -- cgit v1.2.1