[PATCH 24/25] dynamic_debug: drop pr_fmt() from dynamic_pr_debug

From: Jim Cromie
Date: Mon Jul 25 2011 - 17:44:39 EST


dynamic_pr_debug can add module, function, file, and line selectively,
theres no need to also add them via macro. Moreover, adding them
via the macro, which is useful for pr_info and friends, causes
pr_debug to double-print those fields added by the flag-settings.

Signed-off-by: Jim Cromie <jim.cromie@xxxxxxxxx>
---
include/linux/dynamic_debug.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h
index 8f46a5d..6fd10ab 100644
--- a/include/linux/dynamic_debug.h
+++ b/include/linux/dynamic_debug.h
@@ -65,7 +65,7 @@ extern int __dynamic_netdev_dbg(struct _ddebug *descriptor,
#define dynamic_pr_debug(fmt, ...) do { \
DYNAMIC_DEBUG_METADATA(fmt); \
if (unlikely(descriptor.enabled)) \
- __dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__);\
+ __dynamic_pr_debug(&descriptor, fmt, ##__VA_ARGS__); \
} while (0)

#define dynamic_dev_dbg(dev, fmt, ...) do { \
--
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/