]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgfsng: Add new macro to print errors 2055/head
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Wed, 20 Dec 2017 01:43:47 +0000 (23:43 -0200)
committerMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Wed, 20 Dec 2017 01:43:47 +0000 (23:43 -0200)
commit65d78313f27d6d09c6e333fbf3656ca0aca411b4
tree3c791253d4d5acb65749b96e20533fcf01fc6150
parent90f20db15fdfd222a80d661d0698e39584ad7383
cgfsng: Add new macro to print errors

At this point, macros such DEBUG or ERROR does not take effect because
this code is called from cgroup_ops_init(cgroup.c), which runs with
__attribute__((constructor)), before any log level is set form any tool
like lxc-start, so these messages are lost.

For now on, use the same LXC_DEBUG_CGFSNG environment variable to
control these messages.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
src/lxc/cgroups/cgfsng.c