aboutsummaryrefslogtreecommitdiff
path: root/display.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 /display.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 'display.c')
-rw-r--r--display.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/display.c b/display.c
index f2c9c7a..5ace639 100644
--- a/display.c
+++ b/display.c
@@ -299,10 +299,17 @@ void print_sensor_header(void)
void print_clock_info_line(int line, char *clockname, int flags, int rate,
int usecount, int highlight)
{
+ if (usecount)
+ wattron(clock_win, WA_BOLD);
+ else {
+ wattroff(clock_win, WA_BOLD);
+ wattron(clock_win, WA_DIM);
+ }
+
if (highlight)
- wattron(clock_win, WA_BOLD|WA_STANDOUT);
+ wattron(clock_win, WA_REVERSE);
else
- wattron(clock_win, WA_DIM);
+ wattroff(clock_win, WA_REVERSE);
print(clock_win, 0, line + 2, "%s", clockname);
if (strcmp(clockname, "..")) {