dynamic_debug: add pr_errs before -EINVALs
authorJim Cromie <jim.cromie@gmail.com>
Wed, 5 Dec 2012 21:48:27 +0000 (16:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 20:19:09 +0000 (12:19 -0800)
commit18c216c53b29f15b17c4c05a46395fc90ebb6f0c
tree0f01e8fd2346ec6c82eaace95e6831440bc39a03
parent7a555613eb77c69eb6e48b61bc5f72dd42fa1780
dynamic_debug: add pr_errs before -EINVALs

Ma noted that dynamic-debug is silent about many query errors, so add
pr_err()s to explain those errors, and tweak a few others.  Also parse
flags 1st, so that match-spec errs are slightly clearer.

CC: Jianpeng Ma <majianpeng@gmail.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c