Be consistent in -clock parameter
PATCH 1/1 Be consistent in -clock parameter
Hi,
-soundhw, -M, -cpu, -d, -translation options use the '?' to display the list of possibilities, whereas -clock uses 'help'. Change it to be consistent. Display also the list of available sources if no valid clock name has been specified.
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.401
vl.c +6 -6
@@ -917,7 +917,7 @@char *arg;char *name; -if (!strcmp (opt,"help" )) { +if (!strcmp (opt,"?" )) {show_available_alarms ();exit (0 ); }
@@ -956,13 +956,13 @@free (arg);if (cur) { -/* Disable remaining timers */ +/* Disable remaining timers */ for (i = cur; i < count; i++) alarm_timers[i].name =NULL ; + }else { +show_available_alarms (); +exit (1 ); } - -/* debug */ -show_available_alarms (); }QEMUClock *rt_clock;
@@ -7662,7 +7662,7 @@ "-prom-env variable=value set OpenBIOS nvram variables\n"#endif "-clock force the use of the given methods for timer alarm.\n" -" To see what timers are available use -clock help\n" +" To see what timers are available use -clock ?\n" "-startdate select initial date of the Qemu clock\n" "-translation setting1,... configures code translation\n" " (use -translation ? for a list of settings)\n"