aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2017-07-14 13:15:50 -0400
committerLisa Nguyen <lisa.nguyen@linaro.org>2017-09-19 13:02:40 -0700
commite48aec79e8b75266562b9f0b6a8d5940f52765ae (patch)
tree90389a16a363c097ce6116aa92001be225871714
parent7dd9f3c7e20f0d123584d382c4b204bf4f9022c1 (diff)
Redefine the short option for findparents.
This patch changes the short option for findparents from -p to -f so that -p can be used for power domains. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
-rw-r--r--powerdebug.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/powerdebug.c b/powerdebug.c
index dc2c9bf..188c91d 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -34,13 +34,13 @@ void usage(void)
{
printf("Usage: powerdebug [OPTIONS]\n");
printf("\n");
- printf("powerdebug -d [ -r ] [ -s ] [ -c [ -p <clock-name> ] ] "
+ printf("powerdebug -d [ -r ] [ -s ] [ -c [ -f <clock-name> ] ] "
"[ -g ] [ -v ]\n");
printf("powerdebug [ -r | -s | -c | -g]\n");
printf(" -r, --regulator Show regulator information\n");
printf(" -s, --sensor Show sensor information\n");
printf(" -c, --clock Show clock information\n");
- printf(" -p, --findparents Show all parents for a particular"
+ printf(" -f, --findparents Show all parents for a particular"
" clock\n");
printf(" -g, --gpio Show gpio information\n");
printf(" -t, --time Set ticktime in seconds (eg. 10.0)\n");
@@ -62,7 +62,7 @@ void version()
* -s, --sensor : sensors
* -c, --clock : clocks
* -g, --gpio : gpios
- * -p, --findparents : clockname whose parents have to be found
+ * -f, --findparents : clockname whose parents have to be found
* -t, --time : ticktime
* -d, --dump : dump
* -v, --verbose : verbose
@@ -76,7 +76,7 @@ static struct option long_options[] = {
{ "sensor", 0, 0, 's' },
{ "clock", 0, 0, 'c' },
{ "gpio", 0, 0, 'g' },
- { "findparents", 1, 0, 'p' },
+ { "findparents", 1, 0, 'f' },
{ "time", 1, 0, 't' },
{ "dump", 0, 0, 'd' },
{ "verbose", 0, 0, 'v' },
@@ -95,7 +95,7 @@ int getoptions(int argc, char *argv[], struct powerdebug_options *options)
while (1) {
int optindex = 0;
- c = getopt_long(argc, argv, "rscgp:t:dvVh",
+ c = getopt_long(argc, argv, "rscgf:t:dvVh",
long_options, &optindex);
if (c == -1)
break;
@@ -119,7 +119,7 @@ int getoptions(int argc, char *argv[], struct powerdebug_options *options)
case 'v':
options->flags |= VERBOSE_OPTION;
break;
- case 'p':
+ case 'f':
options->clkname = strdup(optarg);
if (!options->clkname) {
fprintf(stderr, "failed to allocate memory");