mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
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: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
2d7abe53fc
commit
8bc39c78d8
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user