Skip to content

Commit

Permalink
staging/mei: define pr_fmt prefix for pr_ macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 4e24764 commit 2f3d2b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/staging/mei/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
*
*/

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit 2f3d2b4

Please sign in to comment.