console: better handing of console_timestamps as a boolean_param In order to handle all the old ways, change to use parse_bool(). Signed-off-by: Don Slutz Reviewed-by: Andrew Cooper Restructure code to limit churn. Signed-off-by: Jan Beulich --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -559,6 +559,15 @@ static int printk_prefix_check(char *p, static void __init parse_console_timestamps(char *s) { + switch ( parse_bool(s) ) + { + case 0: + opt_con_timestamp_mode = TSM_NONE; + return; + case 1: + opt_con_timestamp_mode = TSM_DATE; + return; + } if ( *s == '\0' || /* Compat for old booleanparam() */ !strcmp(s, "date") ) opt_con_timestamp_mode = TSM_DATE;