aboutsummaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorAmit Arora <amit.arora@linaro.org>2010-10-07 14:09:05 +0530
committerAmit Arora <amit.arora@linaro.org>2010-10-07 14:09:05 +0530
commitbf50db9c8663d31b7c84bb9cf1595ce88b068fc6 (patch)
tree6d4b4babaa2097e65a6446a825b8603659367c4d /display.c
parentc93e07180c85ff75949238d681caf88c09da3e5e (diff)
downloadpowerdebug-bf50db9c8663d31b7c84bb9cf1595ce88b068fc6.tar.gz
Show all regulators by default
Diffstat (limited to 'display.c')
-rw-r--r--display.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/display.c b/display.c
index 11bf45e..e67dc5e 100644
--- a/display.c
+++ b/display.c
@@ -176,6 +176,8 @@ void show_regulator_info(int verbose)
{
int i, count = 1;
+ (void)verbose;
+
werase(regulator_win);
wattron(regulator_win, A_BOLD);
print(regulator_win, 0, 0, "Name");
@@ -194,9 +196,11 @@ void show_regulator_info(int verbose)
if((i + 2) > (maxy-2))
break;
- if(!verbose && !strncmp(regulators_info[i].state, "disabled", 8))
- continue;
-
+ if(regulators_info[i].num_users > 0)
+ wattron(regulator_win, WA_BOLD);
+ else
+ wattroff(regulator_win, WA_BOLD);
+
print(regulator_win, col, count, "%s",
regulators_info[i].name);
col += 12;