Skip to contentSkip to conversation

Staging: xillybus: fix for quoted string split across lines

PATCH In review Dhanunjaya 3 participants 4 messages Oct 16, 2013 Staging

lore
Share & tools
lore

Dhanunjaya

author
#0 lore raw

PATCH 2/2 Staging: xillybus: fix for quoted string split across lines

This is a patch to the xillybus_of.c file that fixes up a quoted string split across lines warning found by the checkpatch.pl tool.

---
 drivers/staging/xillybus/xillybus_of.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/xillybus/xillybus_of.c +2 -4
index 92c2931..822ef4d 100644
@@ -117,8 +117,7 @@ static int xilly_drv_probe(struct platform_device *op)
 
 	rc = of_address_to_resource(dev->of_node, 0, &endpoint->res);
 	if (rc) {
-		pr_warn("xillybus: Failed to obtain device tree "
-			"resource\n");
+		pr_warn("xillybus: Failed to obtain device tree resource\n");
 		goto failed_request_regions;
 	}
 
@@ -141,8 +140,7 @@ static int xilly_drv_probe(struct platform_device *op)
 	rc = request_irq(irq, xillybus_isr, 0, xillyname, endpoint);
 
 	if (rc) {
-		pr_err("xillybus: Failed to register IRQ handler. "
-		       "Aborting.\n");
+		pr_err("xillybus: Failed to register IRQ handler, Aborting...\n");
 		rc = -ENODEV;
 		goto failed_register_irq;
 	}
Signature · 1 line
1.8.1.2
maintainer
#1 lore raw
Quoted 5 lines · Dhanunjaya

This is a patch to the xillybus_of.c file that fixes up a quoted string split across lines warning found by the checkpatch.pl tool.

I need a full name here please.

Quoted 9 lines
---
 drivers/staging/xillybus/xillybus_of.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/xillybus/xillybus_of.c +0 -0
index 92c2931..822ef4d 100644

drivers/staging/xillybus/xillybus_of.c static int xilly_drv_probe(struct platform_device *op) · line 120

Quoted 6 lines
drivers/staging/xillybus/xillybus_of.c +1 -2
@@ -117,8 +117,7 @@ static int xilly_drv_probe(struct platform_device *op)
 
 	rc = of_address_to_resource(dev->of_node, 0, &endpoint->res);
 	if (rc) {
-		pr_warn("xillybus: Failed to obtain device tree "
-			"resource\n");
+		pr_warn("xillybus: Failed to obtain device tree resource\n");

This should be using dev_warn() instead.

drivers/staging/xillybus/xillybus_of.c static int xilly_drv_probe(struct platform_device *op) · line 143

Quoted 10 lines
drivers/staging/xillybus/xillybus_of.c +1 -2
 		goto failed_request_regions;
 	}
 
@@ -141,8 +140,7 @@ static int xilly_drv_probe(struct platform_device *op)
 	rc = request_irq(irq, xillybus_isr, 0, xillyname, endpoint);
 
 	if (rc) {
-		pr_err("xillybus: Failed to register IRQ handler. "
-		       "Aborting.\n");
+		pr_err("xillybus: Failed to register IRQ handler, Aborting...\n");

dev_err() instead please here as well.

thanks,

greg k-h

#2 lore raw

Hello Greg,

Quoted 9 lines · Greg KH
Quoted 6 lines

rc = of_address_to_resource(dev->of_node, 0,&endpoint->res);

Quoted 4 lines
   	if (rc) {

- pr_warn("xillybus: Failed to obtain device tree "
- "resource\n");
+ pr_warn("xillybus: Failed to obtain device tree resource\n");

This should be using dev_warn() instead.

So I understand that I should replace *all* occurrences of pr_warn() and pr_err() with their dev_* counterparts?

If so, please give me a week or so to handle that. It's going to be rather chunky patch...

Regards,

Eli

maintainer
#3 lore raw
Quoted 8 lines · Eli Billauer

Hello Greg,

Quoted 5 lines · Greg KH
Quoted 5 lines

rc = of_address_to_resource(dev->of_node, 0,&endpoint->res);

Quoted 4 lines
   	if (rc) {

- pr_warn("xillybus: Failed to obtain device tree "
- "resource\n");
+ pr_warn("xillybus: Failed to obtain device tree resource\n");

Quoted 5 lines
Quoted 2 lines

This should be using dev_warn() instead.

So I understand that I should replace *all* occurrences of pr_warn() and pr_err() with their dev_* counterparts?

Yes.