]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: log ifindex
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 27 Aug 2017 03:01:14 +0000 (05:01 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 29 Aug 2017 20:54:50 +0000 (22:54 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.h
src/lxc/confile_utils.c

index 33cbcd8a1a5fd7666ceaf0a4f9cfc5f98a30bd4d..9850fecdebe549a98bfb9aec4b007cba179127b2 100644 (file)
@@ -121,7 +121,7 @@ union netdev_p {
  * @idx        : network counter
  */
 struct lxc_netdev {
-       unsigned int idx;
+       ssize_t idx;
        int type;
        int flags;
        int ifindex;
index 895f9cd25bf9279acc016337059500067b5f2bea..25c42810a2413d2659949dcd59aeaa46ee9ef516 100644 (file)
@@ -253,7 +253,8 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
        lxc_list_for_each(it, &conf->network) {
                netdev = it->elem;
 
-               TRACE("index: %d", netdev->idx);
+               TRACE("index: %zd", netdev->idx);
+               TRACE("ifindex: %d", netdev->ifindex);
                switch (netdev->type) {
                case LXC_NET_VETH:
                        TRACE("type: veth");