diff options
author | Amit Arora <amit.arora@linaro.org> | 2010-10-05 17:40:29 +0530 |
---|---|---|
committer | Amit Arora <amit.arora@linaro.org> | 2010-10-05 17:40:29 +0530 |
commit | 29cb757ca90ecee02263a8e5548a15a06f6338e6 (patch) | |
tree | d7de90633fb803ddc4b46f51894da324a756e497 /clocks.c | |
parent | b8c58469e22be0296fbce753f6f46f7a69129f99 (diff) | |
download | powerdebug-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.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); } |