[lxc-devel] [lxc/lxc] 65d783: cgfsng: Add new macro to print errors

GitHub noreply at github.com
Wed Dec 20 13:19:58 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 65d78313f27d6d09c6e333fbf3656ca0aca411b4
      https://github.com/lxc/lxc/commit/65d78313f27d6d09c6e333fbf3656ca0aca411b4
  Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
  Date:   2017-12-19 (Tue, 19 Dec 2017)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  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 at gmail.com>


  Commit: 6c049d3a2637446f629105bed28c1f394e5059b7
      https://github.com/lxc/lxc/commit/6c049d3a2637446f629105bed28c1f394e5059b7
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-12-20 (Wed, 20 Dec 2017)

  Changed paths:
    M src/lxc/cgroups/cgfsng.c

  Log Message:
  -----------
  Merge pull request #2055 from marcosps/cgfsng_debug

cgfsng: Add new macro to print errors


Compare: https://github.com/lxc/lxc/compare/d1de8ddad1cd...6c049d3a2637


More information about the lxc-devel mailing list