[PATCH 1/5] dma: ste_dma40: Use vsprintf extension %pR for struct resource

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Monday, December 13, 2010 - 2:42 pm

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/dma/ste_dma40.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index fab68a5..f1a8e1d 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -2855,9 +2855,8 @@ static int __init d40_probe(struct platform_device *pdev)
 	if (request_mem_region(res->start, resource_size(res),
 			       D40_NAME " I/O lcpa") == NULL) {
 		ret = -EBUSY;
-		dev_err(&pdev->dev,
-			"[%s] Failed to request LCPA region 0x%x-0x%x\n",
-			__func__, res->start, res->end);
+		dev_err(&pdev->dev, "[%s] Failed to request LCPA region %pR\n",
+			__func__, res);
 		goto failure;
 	}
 
-- 
1.7.3.3.398.g0b0cd.dirty

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] trivia: Use vsprintf extension %pR, Joe Perches, (Mon Dec 13, 2:42 pm)
[PATCH 1/5] dma: ste_dma40: Use vsprintf extension %pR for ..., Joe Perches, (Mon Dec 13, 2:42 pm)