Commit c95df1ae69b85d5f306d86164e245aae614b852a
Committed by
Guenter Roeck
1 parent
1f923c7a67
Exists in
master
and in
39 other branches
hwmon: (core) Use pr_fmt and pr_<level>
Added #define pr_fmt KBUILD_MODNAME ": " fmt Converted printks to pr_<level> Coalesced any long formats Removed prefixes from formats Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/hwmon/hwmon.c
... | ... | @@ -10,6 +10,8 @@ |
10 | 10 | the Free Software Foundation; version 2 of the License. |
11 | 11 | */ |
12 | 12 | |
13 | +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | |
14 | + | |
13 | 15 | #include <linux/module.h> |
14 | 16 | #include <linux/device.h> |
15 | 17 | #include <linux/err.h> |
... | ... | @@ -119,7 +121,7 @@ |
119 | 121 | |
120 | 122 | hwmon_class = class_create(THIS_MODULE, "hwmon"); |
121 | 123 | if (IS_ERR(hwmon_class)) { |
122 | - printk(KERN_ERR "hwmon.c: couldn't create sysfs class\n"); | |
124 | + pr_err("couldn't create sysfs class\n"); | |
123 | 125 | return PTR_ERR(hwmon_class); |
124 | 126 | } |
125 | 127 | return 0; |