Skip to content

Commit 77f8f39

Browse files
jpoimboeJiri Kosina
authored andcommitted
livepatch: add missing printk newlines
Add missing newlines to some pr_err() strings. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Jessica Yu <jeyu@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 72f04b5 commit 77f8f39

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎kernel/livepatch/core.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int klp_resolve_symbols(Elf_Shdr *relasec, struct module *pmod)
236236
for (i = 0; i < relasec->sh_size / sizeof(Elf_Rela); i++) {
237237
sym = pmod->core_kallsyms.symtab + ELF_R_SYM(relas[i].r_info);
238238
if (sym->st_shndx != SHN_LIVEPATCH) {
239-
pr_err("symbol %s is not marked as a livepatch symbol",
239+
pr_err("symbol %s is not marked as a livepatch symbol\n",
240240
strtab + sym->st_name);
241241
return -EINVAL;
242242
}
@@ -246,7 +246,7 @@ static int klp_resolve_symbols(Elf_Shdr *relasec, struct module *pmod)
246246
".klp.sym.%55[^.].%127[^,],%lu",
247247
objname, symname, &sympos);
248248
if (cnt != 3) {
249-
pr_err("symbol %s has an incorrectly formatted name",
249+
pr_err("symbol %s has an incorrectly formatted name\n",
250250
strtab + sym->st_name);
251251
return -EINVAL;
252252
}
@@ -291,7 +291,7 @@ static int klp_write_object_relocations(struct module *pmod,
291291
*/
292292
cnt = sscanf(secname, ".klp.rela.%55[^.]", sec_objname);
293293
if (cnt != 1) {
294-
pr_err("section %s has an incorrectly formatted name",
294+
pr_err("section %s has an incorrectly formatted name\n",
295295
secname);
296296
ret = -EINVAL;
297297
break;
@@ -921,7 +921,7 @@ int klp_register_patch(struct klp_patch *patch)
921921
return -EINVAL;
922922

923923
if (!is_livepatch_module(patch->mod)) {
924-
pr_err("module %s is not marked as a livepatch module",
924+
pr_err("module %s is not marked as a livepatch module\n",
925925
patch->mod->name);
926926
return -EINVAL;
927927
}

0 commit comments

Comments
 (0)