• 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
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...