aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-05 17:40:29 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-05 17:40:29 +0530
commit29cb757ca90ecee02263a8e5548a15a06f6338e6 (patch)
treed7de90633fb803ddc4b46f51894da324a756e497 /clocks.c
parentb8c58469e22be0296fbce753f6f46f7a69129f99 (diff)
downloadpowerdebug-29cb757ca90ecee02263a8e5548a15a06f6338e6.tar.gz
Display all clocks in non-verbose mode too
Show clocks with > 0 usecount in "bold" text.
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/clocks.c b/clocks.c
index be2e1a5..cf1ead0 100644
--- a/clocks.c
+++ b/clocks.c
@@ -85,6 +85,8 @@ int read_and_print_clock_one_level(int verbose, int hrow, int selected)
char filename[PATH_MAX], devpath[PATH_MAX], clockname[NAME_MAX];
struct dirent *item, *subitem;
+ (void)verbose;
+
print_clock_header(clk_tree_level);
sprintf(filename, "%s", clk_dir_path);
@@ -156,11 +158,10 @@ int read_and_print_clock_one_level(int verbose, int hrow, int selected)
}
*/
- if (verbose || usecount) {
- print_clock_info_line(line, clockname, flags, rate,
- usecount, (hrow == line) ? 1 : 0);
- line++;
- }
+ print_clock_info_line(line, clockname, flags, rate, usecount,
+ (hrow == line) ? 1 : 0);
+ line++;
+
closedir(subdir);
}