Commit 5d0e1194 authored by Mike Looijmans's avatar Mike Looijmans Committed by Ulf Hansson

mmc: sdhci-of-arasan: Use signed formatting in error messages

"ret" is a signed int, so use "%d" in format strings instead of "%u".
This prevents cryptic codes in error messages like this:
sdhci-arasan e0101000.sdhci: platform register failed (4294966779)
Signed-off-by: default avatarMike Looijmans <mike.looijmans@topic.nl>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 4df10e02
...@@ -165,7 +165,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) ...@@ -165,7 +165,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
host = sdhci_pltfm_init(pdev, &sdhci_arasan_pdata, 0); host = sdhci_pltfm_init(pdev, &sdhci_arasan_pdata, 0);
if (IS_ERR(host)) { if (IS_ERR(host)) {
ret = PTR_ERR(host); ret = PTR_ERR(host);
dev_err(&pdev->dev, "platform init failed (%u)\n", ret); dev_err(&pdev->dev, "platform init failed (%d)\n", ret);
goto clk_disable_all; goto clk_disable_all;
} }
...@@ -176,7 +176,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) ...@@ -176,7 +176,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
ret = sdhci_add_host(host); ret = sdhci_add_host(host);
if (ret) { if (ret) {
dev_err(&pdev->dev, "platform register failed (%u)\n", ret); dev_err(&pdev->dev, "platform register failed (%d)\n", ret);
goto err_pltfm_free; goto err_pltfm_free;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment