diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-03-19 22:38:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-10 09:35:52 -0700 |
commit | 2f3d2b499b73b3aa05feba35a9b04c6eec1a50ec (patch) | |
tree | 7cfb06bd68bcf536faf8985dc387037d4db276e2 | |
parent | 4e24764017ee5dd9d7062e9c10af2c3c557f9c5a (diff) |
staging/mei: define pr_fmt prefix for pr_ macros
define pr_fmt macro and remove mei: from the messages
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/mei/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/mei/main.c b/drivers/staging/mei/main.c index 7c9321fa7bb1..4f46738617a2 100644 --- a/drivers/staging/mei/main.c +++ b/drivers/staging/mei/main.c @@ -14,6 +14,8 @@ * */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/kernel.h> @@ -1020,7 +1022,7 @@ static int __devinit mei_probe(struct pci_dev *pdev, mutex_unlock(&mei_mutex); - pr_debug("mei: Driver initialization successful.\n"); + pr_debug("initialization successful.\n"); return 0; @@ -1204,7 +1206,7 @@ static int __init mei_init_module(void) { int ret; - pr_debug("mei: %s\n", mei_driver_string); + pr_debug("loading.\n"); /* init pci module */ ret = pci_register_driver(&mei_driver); if (ret < 0) @@ -1226,7 +1228,7 @@ static void __exit mei_exit_module(void) misc_deregister(&mei_misc_device); pci_unregister_driver(&mei_driver); - pr_debug("mei: Driver unloaded successfully.\n"); + pr_debug("unloaded successfully.\n"); } module_exit(mei_exit_module); |