Skip to content

Commit

Permalink
mmc: sdhci-of-arasan: Use signed formatting in error messages
Browse files Browse the repository at this point in the history
"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: Mike Looijmans <mike.looijmans@topic.nl>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Mike Looijmans authored and Ulf Hansson committed Nov 10, 2014
1 parent 4df10e0 commit 5d0e119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/sdhci-of-arasan.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
host = sdhci_pltfm_init(pdev, &sdhci_arasan_pdata, 0);
if (IS_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;
}

Expand All @@ -176,7 +176,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev)

ret = sdhci_add_host(host);
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;
}

Expand Down

0 comments on commit 5d0e119

Please sign in to comment.