Skip to content

Commit

Permalink
sh: Fix up -Wformat-security whining.
Browse files Browse the repository at this point in the history
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: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Mar 30, 2009
1 parent 4713125 commit 0bd4781
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ static int __init early_parse_mem(char *p)
size = memparse(p, &p);

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

Expand Down

0 comments on commit 0bd4781

Please sign in to comment.