aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-04 12:07:16 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-04 12:07:16 +0530
commitb8c58469e22be0296fbce753f6f46f7a69129f99 (patch)
tree43505964152f94109122cc4e69cc99a66b04f04f
parent0e51272d811662f00dcc26cde17644b8c1196112 (diff)
Display clocks with more than zero usecount, in non-verbose mode
-rw-r--r--clocks.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/clocks.c b/clocks.c
index f812a21..be2e1a5 100644
--- a/clocks.c
+++ b/clocks.c
@@ -85,8 +85,6 @@ 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);
@@ -158,10 +156,11 @@ int read_and_print_clock_one_level(int verbose, int hrow, int selected)
}
*/
- print_clock_info_line(line, clockname, flags, rate, usecount,
- (hrow == line) ? 1 : 0);
-
- line++;
+ if (verbose || usecount) {
+ print_clock_info_line(line, clockname, flags, rate,
+ usecount, (hrow == line) ? 1 : 0);
+ line++;
+ }
closedir(subdir);
}