Skip to content

Commit

Permalink
livepatch: add missing printk newlines
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josh Poimboeuf authored and Jiri Kosina committed Apr 16, 2017
1 parent 72f04b5 commit 77f8f39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/livepatch/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int klp_resolve_symbols(Elf_Shdr *relasec, struct module *pmod)
for (i = 0; i < relasec->sh_size / sizeof(Elf_Rela); i++) {
sym = pmod->core_kallsyms.symtab + ELF_R_SYM(relas[i].r_info);
if (sym->st_shndx != SHN_LIVEPATCH) {
pr_err("symbol %s is not marked as a livepatch symbol",
pr_err("symbol %s is not marked as a livepatch symbol\n",
strtab + sym->st_name);
return -EINVAL;
}
Expand All @@ -246,7 +246,7 @@ static int klp_resolve_symbols(Elf_Shdr *relasec, struct module *pmod)
".klp.sym.%55[^.].%127[^,],%lu",
objname, symname, &sympos);
if (cnt != 3) {
pr_err("symbol %s has an incorrectly formatted name",
pr_err("symbol %s has an incorrectly formatted name\n",
strtab + sym->st_name);
return -EINVAL;
}
Expand Down Expand Up @@ -291,7 +291,7 @@ static int klp_write_object_relocations(struct module *pmod,
*/
cnt = sscanf(secname, ".klp.rela.%55[^.]", sec_objname);
if (cnt != 1) {
pr_err("section %s has an incorrectly formatted name",
pr_err("section %s has an incorrectly formatted name\n",
secname);
ret = -EINVAL;
break;
Expand Down Expand Up @@ -921,7 +921,7 @@ int klp_register_patch(struct klp_patch *patch)
return -EINVAL;

if (!is_livepatch_module(patch->mod)) {
pr_err("module %s is not marked as a livepatch module",
pr_err("module %s is not marked as a livepatch module\n",
patch->mod->name);
return -EINVAL;
}
Expand Down

0 comments on commit 77f8f39

Please sign in to comment.