[PATCH] powerpc/32: add missing \n at end of printk warning message

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3616d

6 messages, 5 authors, 2016-09-13 · open the first message on its own page

[PATCH] powerpc/32: add missing \n at end of printk warning message

From: Colin King <hidden>
Date: 2016-09-12 10:14:15

From: Colin Ian King <redacted>

The message is missing a \n, add it.

Signed-off-by: Colin Ian King <redacted>
---
 arch/powerpc/mm/init_32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 448685f..b532dd9 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -137,7 +137,7 @@ void __init MMU_init(void)
 	if (memblock.memory.cnt > 1) {
 #ifndef CONFIG_WII
 		memblock_enforce_memory_limit(memblock.memory.regions[0].size);
-		printk(KERN_WARNING "Only using first contiguous memory region");
+		printk(KERN_WARNING "Only using first contiguous memory region\n");
 #else
 		wii_memory_fixups();
 #endif
-- 
2.9.3

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

From: Christophe Leroy <hidden>
Date: 2016-09-12 15:21:18


Le 12/09/2016 à 12:12, Colin King a écrit :
quoted hunk
From: Colin Ian King <redacted>

The message is missing a \n, add it.

Signed-off-by: Colin Ian King <redacted>
---
 arch/powerpc/mm/init_32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 448685f..b532dd9 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -137,7 +137,7 @@ void __init MMU_init(void)
 	if (memblock.memory.cnt > 1) {
 #ifndef CONFIG_WII
 		memblock_enforce_memory_limit(memblock.memory.regions[0].size);
-		printk(KERN_WARNING "Only using first contiguous memory region");
+		printk(KERN_WARNING "Only using first contiguous memory region\n");
This line was already 81 characters long. It is now 83.
I would suggest to use pr_warn() instead in order to shorten the line.

Christophe
 #else
 		wii_memory_fixups();
 #endif

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

From: Joe Perches <joe@perches.com>
Date: 2016-09-12 16:34:32

On Mon, 2016-09-12 at 11:12 +0100, Colin King wrote:
From: Colin Ian King <redacted>
The message is missing a \n, add it.
Was this found via inspection or a tool?

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

From: Colin Ian King <hidden>
Date: 2016-09-12 16:51:26

On 12/09/16 17:34, Joe Perches wrote:
On Mon, 2016-09-12 at 11:12 +0100, Colin King wrote:
quoted
From: Colin Ian King <redacted>
The message is missing a \n, add it.
Was this found via inspection or a tool?
grep

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-09-13 01:26:03

Christophe Leroy [off-list ref] writes:
Le 12/09/2016 =C3=A0 12:12, Colin King a =C3=A9crit :
quoted
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index 448685f..b532dd9 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -137,7 +137,7 @@ void __init MMU_init(void)
 	if (memblock.memory.cnt > 1) {
 #ifndef CONFIG_WII
 		memblock_enforce_memory_limit(memblock.memory.regions[0].size);
-		printk(KERN_WARNING "Only using first contiguous memory region");
+		printk(KERN_WARNING "Only using first contiguous memory region\n");
This line was already 81 characters long. It is now 83.
That doesn't really bother me.
I would suggest to use pr_warn() instead in order to shorten the line.
But I do like pr_warn(), it's less shouty.

I'll fix it up when I apply it.

cheers

Re: powerpc/32: add missing \n at end of printk warning message

From: Michael Ellerman <hidden>
Date: 2016-09-13 12:16:36

On Mon, 2016-12-09 at 10:12:24 UTC, Colin King wrote:
From: Colin Ian King <redacted>

The message is missing a \n, add it.

Signed-off-by: Colin Ian King <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/3daf3c206992891ac0cec6a54a

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help