Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd4781d authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fix up -Wformat-security whining.



Triggers -Werror on gcc-4.3:

arch/sh/kernel/setup.c: In function 'early_parse_mem':
arch/sh/kernel/setup.c:111: error: format not a string literal and no format arguments
...

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 47131258
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -103,12 +103,11 @@ static int __init early_parse_mem(char *p)
	size = memparse(p, &p);
	size = memparse(p, &p);


	if (size > __MEMORY_SIZE) {
	if (size > __MEMORY_SIZE) {
		static char msg[] __initdata = KERN_ERR
		printk(KERN_ERR
			"Using mem= to increase the size of kernel memory "
			"Using mem= to increase the size of kernel memory "
			"is not allowed.\n"
			"is not allowed.\n"
			"  Recompile the kernel with the correct value for "
			"  Recompile the kernel with the correct value for "
			"CONFIG_MEMORY_SIZE.\n";
			"CONFIG_MEMORY_SIZE.\n");
		printk(msg);
		return 0;
		return 0;
	}
	}