提交 66fcc741 编写于 作者: S Stuart Yoder 提交者: Greg Kroah-Hartman

staging: fsl-mc: improve message clarity by adding __func__

clarify some error messages by printing the actual function name
involved
Signed-off-by: NStuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a6737837
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册