Commit 8bc39c78 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Andrei Vagin

pr_err: add \n where we miss them

Except for several false positives done by:
find -type f -name "*.c" -not -path "./test/*" -exec sed -i
's/\(\<pr_err.*[^\][^n]\)\("[,)]\)/\1\\n\2/g' {} \;
Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 2d7abe53
......@@ -25,7 +25,7 @@ int compel_cpuid(compel_cpuinfo_t *info)
info->hwcap[1] = getauxval(AT_HWCAP2);
if (!info->hwcap[0]) {
pr_err("Can't read the hardware capabilities");
pr_err("Can't read the hardware capabilities\n");
return -1;
}
......
......@@ -103,7 +103,7 @@ int cpu_validate_cpuinfo(void)
goto error;
if (cpu_info->n_s390_entry != 1) {
pr_err("No S390 related entry in image");
pr_err("No S390 related entry in image\n");
goto error;
}
cpu_s390_entry = cpu_info->s390_entry[0];
......
......@@ -59,7 +59,7 @@ int kdat_can_map_vdso(void)
}
if (waitpid(child, &stat, 0) != child) {
pr_err("Failed to wait for arch_prctl() test");
pr_err("Failed to wait for arch_prctl() test\n");
kill(child, SIGKILL);
return -1;
}
......@@ -154,7 +154,7 @@ static int has_32bit_mmap_bug(void)
mmap_bug_test();
if (waitpid(child, &stat, 0) != child) {
pr_err("Failed to wait for mmap test");
pr_err("Failed to wait for mmap test\n");
kill(child, SIGKILL);
return -1;
}
......
......@@ -222,7 +222,7 @@ static int write_pages_loc(struct page_xfer *xfer,
return -1;
}
if (ret == 0) {
pr_err("A pipe was closed unexpectedly");
pr_err("A pipe was closed unexpectedly\n");
return -1;
}
curr += ret;
......@@ -682,7 +682,7 @@ static int page_server_add(int sk, struct page_server_iov *pi, u32 flags)
return -1;
}
if (chunk == 0) {
pr_err("A socket was closed unexpectedly");
pr_err("A socket was closed unexpectedly\n");
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment