Skip to content
  • Jim Cromie's avatar
    dynamic_debug: combine parse_args callbacks together · 6ab676e9
    Jim Cromie authored
    
    
    Refactor ddebug_dyndbg_boot_param_cb and ddebug_dyndbg_module_param_cb
    into a common helper function, and call it from both.  The handling of
    foo.dyndbg is unneeded by the latter, but harmless.
    
    The 2 callers differ only by pr_info and the return code they pass to
    the helper for when an unknown param is handled.  I could slightly
    reduce dmesg clutter by putting the vpr_info in the common helper,
    after the return on_err, but that loses __func__ context, is overly
    silent on module_cb unknown param errors, and the clutter is only when
    dynamic_debug.verbose=1 anyway.
    
    Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
    Acked-by: default avatarJason Baron <jbaron@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    6ab676e9