Skip to contentSkip to conversation

dma-mapping: add in missing white space in error message text

PATCH Superseded Colin King 2 participants 2 messages Sep 12, 2016 Arm (32-bit)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH v2 1/1 dma-mapping: add in missing white space in error message text

From: Colin Ian King <[email protected]>

A dev_warn message spans two lines and the literal string is missing a white space between words. Add the white space and reformat the message to not span multiple lines.

---
 arch/arm/common/dmabounce.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/common/dmabounce.c +1 -3
index 3012816..afeb5e3 100644
@@ -546,9 +546,7 @@ void dmabounce_unregister_dev(struct device *dev)
 	set_dma_ops(dev, NULL);
 
 	if (!device_info) {
-		dev_warn(dev,
-			 "Never registered with dmabounce but attempting"
-			 "to unregister!\n");
+		dev_warn(dev, "Never registered with dmabounce but attempting to unregister!\n");
 		return;
 	}
 
Signature · 1 line
2.9.3
#1 lore raw
Quoted 16 lines · Colin King

From: Colin Ian King <[email protected]>

A dev_warn message spans two lines and the literal string is missing a white space between words. Add the white space and reformat the message to not span multiple lines.

---
 arch/arm/common/dmabounce.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/common/dmabounce.c +0 -0
index 3012816..afeb5e3 100644

arch/arm/common/dmabounce.c void dmabounce_unregister_dev(struct device *dev) · line 549

Quoted 7 lines
arch/arm/common/dmabounce.c +1 -3
@@ -546,9 +546,7 @@ void dmabounce_unregister_dev(struct device *dev)
 	set_dma_ops(dev, NULL);
 
 	if (!device_info) {
-		dev_warn(dev,
-			 "Never registered with dmabounce but attempting"
-			 "to unregister!\n");
+		dev_warn(dev, "Never registered with dmabounce but attempting to unregister!\n");

Almost!

		dev_warn(dev,
			 "Never registered with dmabounce but attempting to unregister!\n");

The point is that the string is as greppable as possible, while trying to keep to the rest of the style.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.