All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devres: show which resource was invalid
@ 2022-07-08 17:05 Ben Dooks
  0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2022-07-08 17:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: Sudip Mukherjee, Jude Onyenegecha, Ben Dooks

If we do find a resouce that's not valid, print it to aid
identifying the issue.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
---
 lib/devres.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/devres.c b/lib/devres.c
index 14664bbb4875..df5ed06908f0 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -143,7 +143,7 @@ __devm_ioremap_resource(struct device *dev, const struct resource *res,
 	BUG_ON(!dev);
 
 	if (!res || resource_type(res) != IORESOURCE_MEM) {
-		dev_err(dev, "invalid resource\n");
+		dev_err(dev, "invalid resource (%pR)\n", res);
 		return IOMEM_ERR_PTR(-EINVAL);
 	}
 
-- 
2.35.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-08 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 17:05 [PATCH] devres: show which resource was invalid Ben Dooks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.