Commit 2f3d2b49 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

staging/mei: define pr_fmt prefix for pr_ macros

define pr_fmt macro and remove mei: from the messages
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e247640
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
* *
*/ */
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -1020,7 +1022,7 @@ static int __devinit mei_probe(struct pci_dev *pdev, ...@@ -1020,7 +1022,7 @@ static int __devinit mei_probe(struct pci_dev *pdev,
mutex_unlock(&mei_mutex); mutex_unlock(&mei_mutex);
pr_debug("mei: Driver initialization successful.\n"); pr_debug("initialization successful.\n");
return 0; return 0;
...@@ -1204,7 +1206,7 @@ static int __init mei_init_module(void) ...@@ -1204,7 +1206,7 @@ static int __init mei_init_module(void)
{ {
int ret; int ret;
pr_debug("mei: %s\n", mei_driver_string); pr_debug("loading.\n");
/* init pci module */ /* init pci module */
ret = pci_register_driver(&mei_driver); ret = pci_register_driver(&mei_driver);
if (ret < 0) if (ret < 0)
...@@ -1226,7 +1228,7 @@ static void __exit mei_exit_module(void) ...@@ -1226,7 +1228,7 @@ static void __exit mei_exit_module(void)
misc_deregister(&mei_misc_device); misc_deregister(&mei_misc_device);
pci_unregister_driver(&mei_driver); pci_unregister_driver(&mei_driver);
pr_debug("mei: Driver unloaded successfully.\n"); pr_debug("unloaded successfully.\n");
} }
module_exit(mei_exit_module); module_exit(mei_exit_module);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment