[PATCH 10/14] video: i.MX IPUv3: Print error as string

Sascha Hauer s.hauer at pengutronix.de
Wed May 7 01:04:40 PDT 2014


And add a missing newline.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/video/imx-ipu-v3/ipu-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/imx-ipu-v3/ipu-common.c b/drivers/video/imx-ipu-v3/ipu-common.c
index ffd6ec1..5f3b0bb 100644
--- a/drivers/video/imx-ipu-v3/ipu-common.c
+++ b/drivers/video/imx-ipu-v3/ipu-common.c
@@ -774,7 +774,7 @@ static int ipu_probe(struct device_d *dev)
 	ipu->clk = clk_get(dev, "bus");
 	if (IS_ERR(ipu->clk)) {
 		ret = PTR_ERR(ipu->clk);
-		dev_err(dev, "clk_get failed with %d", ret);
+		dev_err(dev, "clk_get failed: %s\n", strerror(-ret));
 		return ret;
 	}
 
@@ -788,7 +788,7 @@ static int ipu_probe(struct device_d *dev)
 
 	ret = devtype->reset(ipu);
 	if (ret) {
-		dev_err(dev, "failed to reset: %d\n", ret);
+		dev_err(dev, "failed to reset: %s\n", strerror(-ret));
 		goto out_failed_reset;
 	}
 
-- 
2.0.0.rc0




More information about the barebox mailing list