summaryrefslogtreecommitdiffstats
path: root/drivers/base/power/trace.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-03-04 09:14:38 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-03-07 11:02:02 +0100
commit7a5bd1279bce2116af67979bea311a0ccc4b8bb9 (patch)
tree83709fec2e35b7fc8a9fa88918cf1081c5113fe4 /drivers/base/power/trace.c
parentef8006846a3a97d9d8bf49e63dba948d0d2dbbf0 (diff)
downloadlinux-7a5bd1279bce2116af67979bea311a0ccc4b8bb9.tar.gz
linux-7a5bd1279bce2116af67979bea311a0ccc4b8bb9.tar.bz2
linux-7a5bd1279bce2116af67979bea311a0ccc4b8bb9.zip
PM: Add and use pr_fmt()
Prefix all printk/pr_<level> messages with "PM: " to make the logging a bit more consistent. Miscellanea: o Convert a few printks to pr_<level> o Whitespace to align to open parentheses o Remove embedded "PM: " from pr_debugs as pr_fmt adds it Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/trace.c')
-rw-r--r--drivers/base/power/trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/power/trace.c b/drivers/base/power/trace.c
index b11f47a1e819..2bd9d2c744ca 100644
--- a/drivers/base/power/trace.c
+++ b/drivers/base/power/trace.c
@@ -7,6 +7,8 @@
* devices may be working.
*/
+#define pr_fmt(fmt) "PM: " fmt
+
#include <linux/pm-trace.h>
#include <linux/export.h>
#include <linux/rtc.h>