44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
|
From 82a49747e5ad73cca14171e81df913f95fece161 Mon Sep 17 00:00:00 2001
|
||
|
From: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||
|
Date: Thu, 16 Mar 2017 16:11:18 +0200
|
||
|
Subject: [PATCH 31/45] ppc: Fix format warning with die()
|
||
|
|
||
|
Enable compiling kexec-tools for ppc with -Werror=format-security.
|
||
|
|
||
|
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||
|
Signed-off-by: Simon Horman <horms@verge.net.au>
|
||
|
---
|
||
|
kexec/arch/ppc/kexec-elf-ppc.c | 2 +-
|
||
|
kexec/arch/ppc/kexec-uImage-ppc.c | 2 +-
|
||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/kexec/arch/ppc/kexec-elf-ppc.c b/kexec/arch/ppc/kexec-elf-ppc.c
|
||
|
index 291f06d4d48f..ad43ad11f0cc 100644
|
||
|
--- a/kexec/arch/ppc/kexec-elf-ppc.c
|
||
|
+++ b/kexec/arch/ppc/kexec-elf-ppc.c
|
||
|
@@ -453,7 +453,7 @@ out:
|
||
|
if (!tmp_cmdline)
|
||
|
free(command_line);
|
||
|
if (error_msg)
|
||
|
- die(error_msg);
|
||
|
+ die("%s", error_msg);
|
||
|
|
||
|
return result;
|
||
|
}
|
||
|
diff --git a/kexec/arch/ppc/kexec-uImage-ppc.c b/kexec/arch/ppc/kexec-uImage-ppc.c
|
||
|
index 5eec6e418a58..e8f7adccdc3f 100644
|
||
|
--- a/kexec/arch/ppc/kexec-uImage-ppc.c
|
||
|
+++ b/kexec/arch/ppc/kexec-uImage-ppc.c
|
||
|
@@ -306,7 +306,7 @@ out:
|
||
|
if (!tmp_cmdline)
|
||
|
free(command_line);
|
||
|
if (error_msg)
|
||
|
- die(error_msg);
|
||
|
+ die("%s", error_msg);
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.13.0
|
||
|
|