Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481269 > unrolled thread

[PATCH][V2] dma-mapping: add in missing white space in error message text

Started byColin King <colin.king@canonical.com>
First post2016-09-12 15:20 +0200
Last post2016-09-12 16:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH][V2] dma-mapping: add in missing white space in error message text Colin King <colin.king@canonical.com> - 2016-09-12 15:20 +0200
    Re: [PATCH][V2] dma-mapping: add in missing white space in error  message text Russell King - ARM Linux <linux@armlinux.org.uk> - 2016-09-12 16:30 +0200

#1481269 — [PATCH][V2] dma-mapping: add in missing white space in error message text

FromColin King <colin.king@canonical.com>
Date2016-09-12 15:20 +0200
Subject[PATCH][V2] dma-mapping: add in missing white space in error message text
Message-ID<sgzjr-3N9-11@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

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.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 arch/arm/common/dmabounce.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index 3012816..afeb5e3 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -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;
 	}
 
-- 
2.9.3

[toc] | [next] | [standalone]


#1481353 — Re: [PATCH][V2] dma-mapping: add in missing white space in error message text

FromRussell King - ARM Linux <linux@armlinux.org.uk>
Date2016-09-12 16:30 +0200
SubjectRe: [PATCH][V2] dma-mapping: add in missing white space in error message text
Message-ID<sgApc-4s1-7@gated-at.bofh.it>
In reply to#1481269
On Mon, Sep 12, 2016 at 02:09:52PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  arch/arm/common/dmabounce.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
> index 3012816..afeb5e3 100644
> --- a/arch/arm/common/dmabounce.c
> +++ b/arch/arm/common/dmabounce.c
> @@ -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.

-- 
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web