ia64/xen-unstable

changeset 15909:b032af6ad976

Let Xen cmdline boolean options be specified as "=0", "=1", "=false", "=true".
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Sep 14 14:36:54 2007 +0100 (2007-09-14)
parents a79d2c043643
children c36292e83f07
files xen/common/kernel.c
line diff
     1.1 --- a/xen/common/kernel.c	Fri Sep 14 09:52:47 2007 +0100
     1.2 +++ b/xen/common/kernel.c	Fri Sep 14 14:36:54 2007 +0100
     1.3 @@ -80,7 +80,10 @@ void cmdline_parse(char *cmdline)
     1.4                  break;
     1.5              case OPT_BOOL:
     1.6              case OPT_INVBOOL:
     1.7 -                if ( !strcmp("no", optval) || !strcmp("off", optval) )
     1.8 +                if ( !strcmp("no", optval) ||
     1.9 +                     !strcmp("off", optval) ||
    1.10 +                     !strcmp("false", optval) ||
    1.11 +                     !strcmp("0", optval) )
    1.12                      bool_assert = !bool_assert;
    1.13                  if ( param->type == OPT_INVBOOL )
    1.14                      bool_assert = !bool_assert;