staging: fsl-mc: improve pr_* messages
authorStuart Yoder <stuart.yoder@nxp.com>
Wed, 26 Oct 2016 16:20:29 +0000 (11:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:15:11 +0000 (15:15 +0200)
define pr_fmt so non dev_* messages will have an fsl-mc prefix
and remove "fsl-mc" from messages where it would now be redundant

Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-bus.c

index 44f64b6f0fc90654e78d9a15ab4230ab066c9c84..245acbfe701b46dbf94e6e89e6622bc4fb854b8c 100644 (file)
@@ -9,6 +9,8 @@
  * warranty of any kind, whether express or implied.
  */
 
+#define pr_fmt(fmt) "fsl-mc: " fmt
+
 #include <linux/module.h>
 #include <linux/of_device.h>
 #include <linux/of_address.h>
@@ -875,11 +877,11 @@ static int __init fsl_mc_bus_driver_init(void)
 
        error = bus_register(&fsl_mc_bus_type);
        if (error < 0) {
-               pr_err("fsl-mc bus type registration failed: %d\n", error);
+               pr_err("bus type registration failed: %d\n", error);
                goto error_cleanup_cache;
        }
 
-       pr_info("fsl-mc bus type registered\n");
+       pr_info("bus type registered\n");
 
        error = platform_driver_register(&fsl_mc_bus_driver);
        if (error < 0) {