Signed-off-by: Simon Horman <horms at verge.net.au> --- kexec/kexec.c | 2 +- kexec/kexec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kexec/kexec.c b/kexec/kexec.c index 22229d8..89ec182 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -53,7 +53,7 @@ unsigned long long mem_max = ULONG_MAX; static unsigned long kexec_flags = 0; int kexec_debug = 0; -void die(char *fmt, ...) +void die(const char *fmt, ...) { va_list args; va_start(args, fmt); diff --git a/kexec/kexec.h b/kexec/kexec.h index 1f46bcb..94c62c1 100644 --- a/kexec/kexec.h +++ b/kexec/kexec.h @@ -220,7 +220,7 @@ extern int file_types; #define KEXEC_OPT_STR "hvdfxluet:p" -extern void die(char *fmt, ...) +extern void die(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); extern void *xmalloc(size_t size); extern void *xrealloc(void *ptr, size_t size); -- 1.7.10.4