criu/compel/include
Pavel Tikhomirov 8cfda2748c 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-04-15 21:17:21 -07:00
..
uapi compel: Add APIs to facilitate testing 2023-04-15 21:17:21 -07:00
compel-cpu.h compel: fpu -- Add compel_test_fpu_cap helper 2018-10-30 19:27:55 +03:00
elf32-types.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
elf64-types.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
errno.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
infect-priv.h clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
log.h log: remove all uses of %m specifier in pr_* functions 2023-04-15 21:17:21 -07:00
piegen.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
ptrace.h compel: set TRACESYSGOOD to distinguish breakpoints from syscalls 2023-04-15 21:17:21 -07:00
rpc-pie-priv.h clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
shmem.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00