mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
staging: fsl-mc: improve message clarity by adding __func__
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a673783771
commit
66fcc741ed
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user