Messages in this thread Patch in this message | | | From | Jim Cromie <> | Subject | [PATCH 24/25] dynamic_debug: drop pr_fmt() from dynamic_pr_debug | Date | Mon, 25 Jul 2011 15:42:49 -0600 |
| |
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@gmail.com> --- 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
| |