diff options
author | Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | 2014-01-24 00:54:56 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-24 01:36:58 +0100 |
commit | 499a4584d7f817d43d09ccfc6bb26315eeaab6bc (patch) | |
tree | 571e45ed5894c452402fef44ac4f03bc85d08f81 /init/initramfs.c | |
parent | init/main.c: remove unused declaration of tc_init() (diff) | |
download | linux-499a4584d7f817d43d09ccfc6bb26315eeaab6bc.tar.xz linux-499a4584d7f817d43d09ccfc6bb26315eeaab6bc.zip |
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) { char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size); if (err) - panic(err); /* Failed to decompress INTERNAL initramfs */ + panic("%s", err); /* Failed to decompress INTERNAL initramfs */ if (initrd_start) { #ifdef CONFIG_BLK_DEV_RAM int fd; |