Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xo15-ebook: Use pr_<level>

Use the current logging styles.

Remove local #define PREFIX.
Add pr_fmt.
Convert printk to pr_<level>.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>

authored by

Joe Perches and committed by
Matthew Garrett
ad3f2f03 dd8e908e

+3 -2
+3 -2
drivers/platform/x86/xo15-ebook.c
··· 11 11 * your option) any later version. 12 12 */ 13 13 14 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 15 + 14 16 #include <linux/kernel.h> 15 17 #include <linux/module.h> 16 18 #include <linux/init.h> ··· 22 20 #include <acpi/acpi_drivers.h> 23 21 24 22 #define MODULE_NAME "xo15-ebook" 25 - #define PREFIX MODULE_NAME ": " 26 23 27 24 #define XO15_EBOOK_CLASS MODULE_NAME 28 25 #define XO15_EBOOK_TYPE_UNKNOWN 0x00 ··· 106 105 class = acpi_device_class(device); 107 106 108 107 if (strcmp(hid, XO15_EBOOK_HID)) { 109 - printk(KERN_ERR PREFIX "Unsupported hid [%s]\n", hid); 108 + pr_err("Unsupported hid [%s]\n", hid); 110 109 error = -ENODEV; 111 110 goto err_free_input; 112 111 }