If unable to read clock tree, inform user
diff --git a/powerdebug.c b/powerdebug.c
index 7fc1f14..72faa02 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -325,11 +325,13 @@
}
if (selectedwindow == CLOCK) {
+ int ret = 0;
if (firsttime[CLOCK]) {
- init_clock_details();
- firsttime[CLOCK] = 0;
+ ret = init_clock_details();
+ if (!ret)
+ firsttime[CLOCK] = 0;
}
- if (!dump) {
+ if (!ret && !dump) {
int hrow;
create_selectedwindow();
@@ -338,7 +340,8 @@
enter_hit);
highlighted_row = hrow;
enter_hit = 0;
- } else
+ }
+ if (!ret && dump)
read_and_dump_clock_info(verbose);
}