[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 05/52] xen/arch/x86/cpu/mcheck/mce.c: let custom parameter parsing routines return errno
Modify the custom parameter parsing routines in: xen/arch/x86/cpu/mcheck/mce.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich <jbeulich@xxxxxxxx> Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- xen/arch/x86/cpu/mcheck/mce.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c index 30525dd78b..e577a9db11 100644 --- a/xen/arch/x86/cpu/mcheck/mce.c +++ b/xen/arch/x86/cpu/mcheck/mce.c @@ -62,13 +62,18 @@ struct mca_banks *mca_allbanks; #endif int mce_verbosity; -static void __init mce_set_verbosity(char *str) +static int __init mce_set_verbosity(char *str) { if (strcmp("verbose", str) == 0) mce_verbosity = MCE_VERBOSE; else + { printk(KERN_DEBUG "Machine Check verbosity level %s not recognised" "use mce_verbosity=verbose", str); + return -EINVAL; + } + + return 0; } custom_param("mce_verbosity", mce_set_verbosity); -- 2.12.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |