network: log ifindex

parent 07bb8324
...@@ -121,7 +121,7 @@ union netdev_p { ...@@ -121,7 +121,7 @@ union netdev_p {
* @idx : network counter * @idx : network counter
*/ */
struct lxc_netdev { struct lxc_netdev {
unsigned int idx; ssize_t idx;
int type; int type;
int flags; int flags;
int ifindex; int ifindex;
......
...@@ -253,7 +253,8 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf) ...@@ -253,7 +253,8 @@ void lxc_log_configured_netdevs(const struct lxc_conf *conf)
lxc_list_for_each(it, &conf->network) { lxc_list_for_each(it, &conf->network) {
netdev = it->elem; netdev = it->elem;
TRACE("index: %d", netdev->idx); TRACE("index: %zd", netdev->idx);
TRACE("ifindex: %d", netdev->ifindex);
switch (netdev->type) { switch (netdev->type) {
case LXC_NET_VETH: case LXC_NET_VETH:
TRACE("type: veth"); TRACE("type: veth");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment