Date:2011-04-14 01:55:45 (8 years 4 months ago)
Author:Werner Almesberger
Commit:87b76af2fa90cde858e639312b6748eddabcb46e
Message:atrf-path.c (usage, main): use ... [[sweeps] samples] with and without GUI

This was just too confusing ...
Files: tools/atrf-path/atrf-path.c (2 diffs)

Change Details

tools/atrf-path/atrf-path.c
283283static void usage(const char *name)
284284{
285285    fprintf(stderr,
286"usage: %s common_args [sweeps [samples]]\n"
286"usage: %s common_args [[sweeps] samples]\n"
287287
288288#ifdef HAVE_GFX
289289"%6s %s -g common_args [[sweeps] samples]\n"
...... 
376376        sweeps = strtoul(argv[optind+2], &end, 0);
377377        if (*end)
378378            usage(*argv);
379        if (graphical && argc-optind == 3) {
379        if (argc-optind == 3) {
380380            sweep.samples = sweeps;
381            sweeps = 0;
381            sweeps = graphical ? 0 : 1;
382382        }
383383        /* fall through */
384384    case 2:

Archive Download the corresponding diff file



interactive