]> git.ipfire.org Git - thirdparty/lxc.git/commit
log: add lxc_log_strerror_r macro
author2xsec <dh48.jeong@samsung.com>
Mon, 25 Jun 2018 13:00:43 +0000 (22:00 +0900)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 13:33:12 +0000 (14:33 +0100)
commit14a740a620558daf092790b82ef6aaed515eca63
tree16393ba62532fcabf07456d6fa400ec0d080a20f
parentf1f839b88121e7a405baf2af4c6e6e4c71314f80
log: add lxc_log_strerror_r macro

Let's ensure that we always use the thread-safe strerror_r() function and add
an approriate macro.
Additionally, define SYS*() macros for all log levels. They will use the new
macro and ensure thread-safe retrieval of errno values.

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
[christian.brauner@ubuntu.com: simplify lxc_log_strerror_r macro]
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.h
src/lxc/lsm/apparmor.c
src/lxc/lsm/lsm.c
src/lxc/lsm/selinux.c
src/lxc/monitor.c
src/lxc/state.c
src/lxc/sync.c