summaryrefslogtreecommitdiff
path: root/kexec/arch/ppc/kexec-uImage-ppc.c
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2017-03-14 17:59:22 +0530
committerSimon Horman <horms@verge.net.au>2017-03-14 14:38:32 +0100
commit1550f81bf1886aa0520da0b6181cd61c1a75d4ad (patch)
tree7f399e130a384084341248bfdabf48d4ea63e5a7 /kexec/arch/ppc/kexec-uImage-ppc.c
parent47cc70157c6610d4c01a7ab4f8f0d24ab054b43b (diff)
x86/x86_64: Fix format warning with die()
Fedora koji uses gcc version 7.0.1-0.12.fc27, and it generates a build warning kexec/arch/i386/kexec-elf-x86.c:299:3: error: format not a string literal and no format arguments [-Werror=format-security] die(error_msg); ^~~ cc1: some warnings being treated as errors error_msg can have a format specifier as well in string. In such cases, if there is no other arguments for the format variable then code will try to access a non existing argument. Therefore, use 1st argument as format specifier for string print and pass error_msg as the string to be printed. While doing that,also use const qualifier before "char *error_msg". Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/ppc/kexec-uImage-ppc.c')
0 files changed, 0 insertions, 0 deletions