staging: fsl-mc: improve message clarity by adding __func__
authorStuart Yoder <stuart.yoder@nxp.com>
Wed, 26 Oct 2016 16:20:30 +0000 (11:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:15:11 +0000 (15:15 +0200)
clarify some error messages by printing the actual function name
involved

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 245acbfe701b46dbf94e6e89e6622bc4fb854b8c..5267c503c75b7a6909aeadcfaf1596432cb16412 100644 (file)
@@ -166,8 +166,7 @@ static int fsl_mc_driver_probe(struct device *dev)
 
        error = mc_drv->probe(mc_dev);
        if (error < 0) {
-               dev_err(dev, "MC object device probe callback failed: %d\n",
-                       error);
+               dev_err(dev, "%s failed: %d\n", __func__, error);
                return error;
        }
 
@@ -185,9 +184,7 @@ static int fsl_mc_driver_remove(struct device *dev)
 
        error = mc_drv->remove(mc_dev);
        if (error < 0) {
-               dev_err(dev,
-                       "MC object device remove callback failed: %d\n",
-                       error);
+               dev_err(dev, "%s failed: %d\n", __func__, error);
                return error;
        }