[PATCH] kexec, x86: add missing newlines

Adrien Schildknecht adrien+dev at schischi.me
Wed Jul 15 11:18:24 PDT 2015


A newline was missing at the end of the ramdisk error_msg in both x86
and x86_64 files.

Signed-off-by: Adrien Schildknecht <adrien+dev at schischi.me>
---
 kexec/arch/i386/kexec-elf-x86.c      | 2 +-
 kexec/arch/x86_64/kexec-elf-x86_64.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kexec/arch/i386/kexec-elf-x86.c b/kexec/arch/i386/kexec-elf-x86.c
index de00dcb..70b8a2f 100644
--- a/kexec/arch/i386/kexec-elf-x86.c
+++ b/kexec/arch/i386/kexec-elf-x86.c
@@ -218,7 +218,7 @@ int elf_x86_load(int argc, char **argv, const char *buf, off_t len,
 		elf_rel_set_symbol(&info->rhdr, "entry32_regs", &regs, sizeof(regs));
 
 		if (ramdisk) {
-			error_msg = "Ramdisks not supported with generic elf arguments";
+			error_msg = "Ramdisks not supported with generic elf arguments\n";
 			goto out;
 		}
 	}
diff --git a/kexec/arch/x86_64/kexec-elf-x86_64.c b/kexec/arch/x86_64/kexec-elf-x86_64.c
index ae65692..a5f5d22 100644
--- a/kexec/arch/x86_64/kexec-elf-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-x86_64.c
@@ -207,7 +207,7 @@ int elf_x86_64_load(int argc, char **argv, const char *buf, off_t len,
 		elf_rel_set_symbol(&info->rhdr, "entry64_regs", &regs, sizeof(regs));
 
 		if (ramdisk) {
-			error_msg = "Ramdisks not supported with generic elf arguments";
+			error_msg = "Ramdisks not supported with generic elf arguments\n";
 			goto out;
 		}
 	}
-- 
2.4.5




More information about the kexec mailing list