network: log ifindex

parent 07bb8324
......@@ -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;
......
......@@ -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");
......
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