aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:10 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 02:59:29 +0300
commitc9c146228cc87237f4841503dca6800cbaf70620 (patch)
tree89f58eceaee4f8d2396257fad9b099c1850c5c05
parent2d19ae861c604912f1b840d94419f223ac3ae411 (diff)
downloadpowerdebug-c9c146228cc87237f4841503dca6800cbaf70620.tar.gz
Reduce dump usage
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--powerdebug.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/powerdebug.c b/powerdebug.c
index 7ef0a22..d337cc8 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -141,13 +141,21 @@ int getoptions(int argc, char *argv[], struct powerdebug_options *options)
}
}
- if (options->dump && !(options->regulators ||
- options->clocks || options->sensors)) {
- /* By Default lets show everything we have */
- options->regulators = options->clocks = options->sensors = true;
+ if (options->dump) {
+
+ /* No system specified to be dump, let's default to all */
+ if (!options->regulators &&
+ !options->clocks &&
+ !options->sensors) {
+ options->regulators = options->clocks =
+ options->sensors = true;
+
+ return 0;
+ }
+
}
- if (!options->dump && options->selectedwindow == -1)
+ if (options->selectedwindow == -1)
options->selectedwindow = CLOCK;
return 0;