From 87b76af2fa90cde858e639312b6748eddabcb46e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 13 Apr 2011 20:55:45 -0300 Subject: [PATCH] atrf-path.c (usage, main): use ... [[sweeps] samples] with and without GUI This was just too confusing ... --- tools/atrf-path/atrf-path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/atrf-path/atrf-path.c b/tools/atrf-path/atrf-path.c index 81a817f..ac39eaa 100644 --- a/tools/atrf-path/atrf-path.c +++ b/tools/atrf-path/atrf-path.c @@ -283,7 +283,7 @@ static void read_profile(const char *name, struct sweep *sweep) static void usage(const char *name) { fprintf(stderr, -"usage: %s common_args [sweeps [samples]]\n" +"usage: %s common_args [[sweeps] samples]\n" #ifdef HAVE_GFX "%6s %s -g common_args [[sweeps] samples]\n" @@ -376,9 +376,9 @@ int main(int argc, char **argv) sweeps = strtoul(argv[optind+2], &end, 0); if (*end) usage(*argv); - if (graphical && argc-optind == 3) { + if (argc-optind == 3) { sweep.samples = sweeps; - sweeps = 0; + sweeps = graphical ? 0 : 1; } /* fall through */ case 2: