Commit bbe24fee22fa045a07ff7e926589ac722c7ee78d

Authored by Joey Lee
Committed by Matthew Garrett
1 parent 2d70b73ae5

msi-laptop: use pr_<level> for messages

msi-laptop: use pr_<level> for messages

Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>

Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff

drivers/platform/x86/msi-laptop.c
... ... @@ -51,6 +51,8 @@
51 51 * laptop as MSI S270. YMMV.
52 52 */
53 53  
  54 +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  55 +
54 56 #include <linux/module.h>
55 57 #include <linux/kernel.h>
56 58 #include <linux/init.h>
... ... @@ -445,8 +447,7 @@
445 447  
446 448 static int dmi_check_cb(const struct dmi_system_id *id)
447 449 {
448   - printk(KERN_INFO "msi-laptop: Identified laptop model '%s'.\n",
449   - id->ident);
  450 + pr_info("Identified laptop model '%s'.\n", id->ident);
450 451 return 1;
451 452 }
452 453  
... ... @@ -834,8 +835,7 @@
834 835  
835 836 result = i8042_install_filter(msi_laptop_i8042_filter);
836 837 if (result) {
837   - printk(KERN_ERR
838   - "msi-laptop: Unable to install key filter\n");
  838 + pr_err("Unable to install key filter\n");
839 839 goto fail_filter;
840 840 }
841 841  
... ... @@ -875,7 +875,7 @@
875 875 /* Register backlight stuff */
876 876  
877 877 if (acpi_video_backlight_support()) {
878   - printk(KERN_INFO "MSI: Brightness ignored, must be controlled "
  878 + pr_info("Brightness ignored, must be controlled "
879 879 "by ACPI video driver\n");
880 880 } else {
881 881 struct backlight_properties props;
... ... @@ -930,7 +930,7 @@
930 930 if (auto_brightness != 2)
931 931 set_auto_brightness(auto_brightness);
932 932  
933   - printk(KERN_INFO "msi-laptop: driver "MSI_DRIVER_VERSION" successfully loaded.\n");
  933 + pr_info("driver "MSI_DRIVER_VERSION" successfully loaded.\n");
934 934  
935 935 return 0;
936 936  
... ... @@ -978,7 +978,7 @@
978 978 if (auto_brightness != 2)
979 979 set_auto_brightness(1);
980 980  
981   - printk(KERN_INFO "msi-laptop: driver unloaded.\n");
  981 + pr_info("driver unloaded.\n");
982 982 }
983 983  
984 984 module_init(msi_init);