public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc/host/sdhci-of-arasan.c: Use signed formatting in error messages
@ 2014-10-23 11:31 Mike Looijmans
  2014-10-23 11:31 ` [PATCH 2/2] mmc/host/sdhci-of-arasan.c: Skip EPROBE_DEFER " Mike Looijmans
  2014-10-27 15:38 ` [PATCH 1/2] mmc/host/sdhci-of-arasan.c: Use signed formatting in " Ulf Hansson
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Looijmans @ 2014-10-23 11:31 UTC (permalink / raw)
  To: linux-mmc, linux-kernel; +Cc: michal.simek, chris, ulf.hansson, Mike Looijmans

"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>
---
 drivers/mmc/host/sdhci-of-arasan.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index 8cf81c3..7ac6718 100644
--- a/drivers/mmc/host/sdhci-of-arasan.c
+++ b/drivers/mmc/host/sdhci-of-arasan.c
@@ -161,7 +161,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;
 	}
 
@@ -172,7 +172,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;
 	}
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-28  9:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23 11:31 [PATCH 1/2] mmc/host/sdhci-of-arasan.c: Use signed formatting in error messages Mike Looijmans
2014-10-23 11:31 ` [PATCH 2/2] mmc/host/sdhci-of-arasan.c: Skip EPROBE_DEFER " Mike Looijmans
2014-10-23 11:47   ` Michal Simek
2014-10-27 15:33     ` Ulf Hansson
2014-10-28  7:53       ` Mike Looijmans
2014-10-28  7:53         ` [PATCH] mmc/host/sdhci-of-arasan.c: Omit superfluous " Mike Looijmans
2014-10-28  9:49           ` Ulf Hansson
2014-10-27 15:38 ` [PATCH 1/2] mmc/host/sdhci-of-arasan.c: Use signed formatting in " Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox