aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@linaro.org>2014-05-28 17:40:36 +0530
committerAmit Kucheria <amit.kucheria@linaro.org>2014-06-01 15:43:42 +0530
commit2129191e8946c71e8b41cf8ecabf8cb8e0119676 (patch)
treebd3dca514271c7622b2d98092dafd20b7435415d
parent900d60f3cde8f71b77ceb288e244d7b8e8d41663 (diff)
Stick to -d for debug according to widely used convention
Switch the dump option (which might be used infrequently) to use -m Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--idlestat.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/idlestat.c b/idlestat.c
index 48e4166..a3b9363 100644
--- a/idlestat.c
+++ b/idlestat.c
@@ -946,7 +946,7 @@ struct cpuidle_cstates *physical_cluster_data(struct cpu_physical *s_phy)
static void help(const char *cmd)
{
fprintf(stderr,
- "%s [-d|--dump] [-t <seconds>] -o|--output-file <file>\n",
+ "%s [-m|--dump] [-t <seconds>] -o|--output-file <file>\n",
basename(cmd));
}
@@ -956,10 +956,10 @@ static void version(const char *cmd)
}
static struct option long_options[] = {
- { "dump", no_argument, 0, 'd' },
- { "debug", no_argument, 0, 'g' },
+ { "debug", no_argument, 0, 'd' },
{ "help", no_argument, 0, 'h' },
{ "iterations", required_argument, 0, 'i' },
+ { "dump", no_argument, 0, 'm' },
{ "output-file", required_argument, 0, 'o' },
{ "duration", required_argument, 0, 't' },
{ "version", no_argument, 0, 'V' },
@@ -985,16 +985,13 @@ int getoptions(int argc, char *argv[], struct idledebug_options *options)
int optindex = 0;
- c = getopt_long(argc, argv, "dghi:o:t:V",
+ c = getopt_long(argc, argv, "dhi:mo:t:V",
long_options, &optindex);
if (c == -1)
break;
switch (c) {
case 'd':
- options->dump = true;
- break;
- case 'g':
options->debug = true;
break;
case 'h':
@@ -1004,6 +1001,9 @@ int getoptions(int argc, char *argv[], struct idledebug_options *options)
case 'i':
options->iterations = atoi(optarg);
break;
+ case 'm':
+ options->dump = true;
+ break;
case 'o':
options->filename = optarg;
break;