From bc0fcb3183eae153667186c71fbed8a435c06491 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 14 Sep 2005 23:51:28 +0000 Subject: [PATCH] separate -m mode and -c git-svn-id: http://ltt.polymtl.ca/svn@1191 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttctl/lttctl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ltt/branches/poly/lttctl/lttctl.c b/ltt/branches/poly/lttctl/lttctl.c index 9845c5c6..0e6cefd7 100644 --- a/ltt/branches/poly/lttctl/lttctl.c +++ b/ltt/branches/poly/lttctl/lttctl.c @@ -62,7 +62,8 @@ void show_arguments(void) printf("Please use the following arguments :\n"); printf("\n"); printf("-n name Name of the trace.\n"); - printf("-c mode Create trace channels in mode normal or flight recorder.\n"); + printf("-c Create trace channels.\n"); + printf("-m mode Normal or flight recorder mode.\n"); printf(" Mode values : normal (default) or flight.\n"); printf("-r Destroy trace channels.\n"); printf("-s Start tracing.\n"); @@ -117,6 +118,8 @@ int parse_arguments(int argc, char **argv) break; case 'c': op = CTL_OP_CREATE; + break; + case 'm': if(argn+1 < argc) { mode_name = argv[argn+1]; argn++; @@ -130,7 +133,7 @@ int parse_arguments(int argc, char **argv) ret = -1; } } else { - printf("Specify a mode after -c.\n"); + printf("Specify a mode after -m.\n"); printf("\n"); ret = -1; } -- 2.34.1