diff options
author | Amit Arora <amit.arora@linaro.org> | 2010-10-04 12:07:16 +0530 |
---|---|---|
committer | Amit Arora <amit.arora@linaro.org> | 2010-10-04 12:07:16 +0530 |
commit | b8c58469e22be0296fbce753f6f46f7a69129f99 (patch) | |
tree | 43505964152f94109122cc4e69cc99a66b04f04f | |
parent | 0e51272d811662f00dcc26cde17644b8c1196112 (diff) |
Display clocks with more than zero usecount, in non-verbose mode
-rw-r--r-- | clocks.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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); } |