criu/compel
Pavel Tikhomirov ac78cbe770 log: remove all uses of %m specifier in pr_* functions
As our pr_* functions are complex and can call different system calls
inside before actual printing (e.g. gettimeofday for timestamps) actual
errno at the time of printing may be changed.

Let's just use %s + strerror(errno) instead of %m with pr_* functions to
be explicit that errno to string transformation happens before calling
anything else.

Note: tcp_repair_off is called from pie with no pr_perror defined due to
CR_NOGLIBC set and if I use errno variable there I get "Unexpected
undefined symbol: `__errno_location'. External symbol in PIE?", so it
seems there is no way to print errno there, so let's just skip it.

Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
2023-01-25 09:37:36 -08:00
..
arch compel: Fix ppc64le parasite stack layout 2022-10-01 22:42:48 -07:00
include log: remove all uses of %m specifier in pr_* functions 2023-01-25 09:37:36 -08:00
plugins kerndat: check whether the openat2 syscall is supported 2022-04-28 17:53:52 -07:00
src compel: Add APIs to facilitate testing 2022-10-01 22:42:48 -07:00
test compel: Add test to check parasite stack setup 2022-10-01 22:42:48 -07:00
.gitignore compel: adapt .gitgnore for aarch64 and ppc64le 2017-08-09 18:51:42 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile x86: Use PTRACE_GET_THREAD_AREA instead of sys_get_thread_area() 2021-09-03 10:31:00 -07:00