diff options
author | Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | 2014-01-23 18:54:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:36:58 -0500 |
commit | 499a4584d7f817d43d09ccfc6bb26315eeaab6bc (patch) | |
tree | 571e45ed5894c452402fef44ac4f03bc85d08f81 /init/initramfs.c | |
parent | 128e3f4541ec844c90a99320bf7d2909da4ef80b (diff) |
init: fix possible format string bug
Use constant format string in case message changes.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/initramfs.c')
-rw-r--r-- | init/initramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index a67ef9dbda9d..93b61396756b 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
@@ -583,7 +583,7 @@ static int __init populate_rootfs(void) | |||
583 | { | 583 | { |
584 | char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size); | 584 | char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size); |
585 | if (err) | 585 | if (err) |
586 | panic(err); /* Failed to decompress INTERNAL initramfs */ | 586 | panic("%s", err); /* Failed to decompress INTERNAL initramfs */ |
587 | if (initrd_start) { | 587 | if (initrd_start) { |
588 | #ifdef CONFIG_BLK_DEV_RAM | 588 | #ifdef CONFIG_BLK_DEV_RAM |
589 | int fd; | 589 | int fd; |