gdunlap/sched-sim.hg

changeset 17:03ad237559b4 tip

Fix-up options, scheduler list
author George Dunlap <george.dunlap@eu.citrix.com>
date Fri Jul 16 11:58:53 2010 +0100 (2010-07-16)
parents cb624ff1d4fe
children
files options.c
line diff
     1.1 --- a/options.c	Fri Jul 16 11:55:39 2010 +0100
     1.2 +++ b/options.c	Fri Jul 16 11:58:53 2010 +0100
     1.3 @@ -34,7 +34,7 @@ const struct argp_option cmd_opts[] =  {
     1.4        .arg="workload-name",
     1.5        .doc = "Synthetic workload to run.", },
     1.6      { .name = "scheduler",
     1.7 -      .arg="workload-name",
     1.8 +      .arg="scheduler-name",
     1.9        .key = OPT_SCHEDULER,
    1.10        .doc = "Chose scheduler to run.", },
    1.11      { .name = "pcpus",
    1.12 @@ -66,7 +66,7 @@ error_t cmd_parser(int key, char *arg, s
    1.13          int i;
    1.14          printf("Schedulers:\n");
    1.15          for ( i=0; schedulers[i]; i++)
    1.16 -            printf(" %s\n", schedulers[i]->name);
    1.17 +            printf(" %15s: %s\n", schedulers[i]->name, schedulers[i]->desc);
    1.18          dont_run=1;
    1.19          break;
    1.20      }