dynamic_debug: factor vpr_info_dq out of ddebug_parse_query
authorJim Cromie <jim.cromie@gmail.com>
Mon, 19 Dec 2011 22:13:16 +0000 (17:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:50:36 +0000 (12:50 -0800)
commit574b3725e327531c70361d1a10b8dc8dd2b93590
treea68938a8ef462426a34bb002ee697e2e6ce26df7
parent2b6783191da7211c88f98eb1a2bd2027bff36e30
dynamic_debug: factor vpr_info_dq out of ddebug_parse_query

Factor pr_info(query) out of ddebug_parse_query, into vpr_info_dq(),
for reuse later.  Also change the printed labels: file, func to agree
with the query-spec keywords accepted in the control file.  Pass ""
when string is null, to avoid "(null)" output from sprintf.  For
format print, use precision to skip last char, assuming its '\n', no
great harm if not, its a debug msg.

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