dynamic_debug: tighten up error checking on debug queries
authorJim Cromie <jim.cromie@gmail.com>
Mon, 19 Dec 2011 22:12:49 +0000 (17:12 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:48:53 +0000 (12:48 -0800)
commit820874c75ea0d3a9c22d69d6eaad42a279d6756c
tree96cc2880f8bccb0d6d76e6eb518a2cfd533f50e4
parent5ca7d2a6c5e4f24dfe39e8383c6d32e61d95d16a
dynamic_debug: tighten up error checking on debug queries

Issue error when a match-spec is given multiple times in a rule.
Previous code kept last one, but was silent about it.  Docs imply only
one is allowed by saying match-specs are ANDed together, given that
module M cannot match both A and B.  Also error when last_line < 1st_line.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/dynamic_debug.c