Skip to contentSkip to conversation

dma: of: make error message more meaningful by adding the node name

PATCH Applied Lothar Waßmann 2 participants 2 messages Jul 31, 2013 – Aug 19, 2013 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 7/25 dma: of: make error message more meaningful by adding the node name

---
 drivers/dma/of-dma.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/dma/of-dma.c +2 -1
index 75334bd..0b88dd3 100644
@@ -160,7 +160,8 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
 
 	count = of_property_count_strings(np, "dma-names");
 	if (count < 0) {
-		pr_err("%s: dma-names property missing or empty\n", __func__);
+		pr_err("%s: dma-names property of node '%s' missing or empty\n",
+			__func__, np->full_name);
 		return NULL;
 	}
 
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 2 lines · Lothar Waßmann

Applied, thanks

~Vinod

Quoted 21 lines
---
 drivers/dma/of-dma.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/dma/of-dma.c +2 -1
index 75334bd..0b88dd3 100644
@@ -160,7 +160,8 @@ struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
 
 	count = of_property_count_strings(np, "dma-names");
 	if (count < 0) {
-		pr_err("%s: dma-names property missing or empty\n", __func__);
+		pr_err("%s: dma-names property of node '%s' missing or empty\n",
+			__func__, np->full_name);
 		return NULL;
 	}
 
Signature · 1 line
1.7.2.5