[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1309988803.1710.10.camel@Joe-Laptop>
Date: Wed, 06 Jul 2011 14:46:43 -0700
From: Joe Perches <joe@...ches.com>
To: Jason Baron <jbaron@...hat.com>
Cc: gregkh@...e.de, jim.cromie@...il.com, bvanassche@....org,
linux-kernel@...r.kernel.org, davem@...emloft.net,
aloisio.almeida@...nbossa.org, netdev@...r.kernel.org
Subject: Re: [PATCH 01/10] dynamic_debug: Add __dynamic_dev_dbg
On Wed, 2011-07-06 at 13:24 -0400, Jason Baron wrote:
> Unlike dynamic_pr_debug, dynamic uses of dev_dbg can not
> currently add task_pid/KBUILD_MODNAME/__func__/__LINE__
> to selected debug output.
> Add a new function similar to dynamic_pr_debug to
> optionally emit these prefixes.
[]
> diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
[]
> @@ -456,6 +457,43 @@ int __dynamic_pr_debug(struct _ddebug *descriptor, const char *fmt, ...)
[]
> +int __dynamic_dev_dbg(struct _ddebug *descriptor,
> + const struct device *dev, const char *fmt, ...)
[]
> + res += __dev_printk("", dev, &vaf);
I suppose that should more properly be written as:
res += __dev_printk(KERN_CONT, dev, &vaf);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists