Commit dffe544f authored by Pavel Emelyanov's avatar Pavel Emelyanov

show: Show netdevice indices with %d

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3158389d
...@@ -18,7 +18,7 @@ static int ns_fd = -1; ...@@ -18,7 +18,7 @@ static int ns_fd = -1;
void show_netdevices(int fd, struct cr_options *opt) void show_netdevices(int fd, struct cr_options *opt)
{ {
pb_show_plain(fd, PB_NETDEV); pb_show_plain_pretty(fd, PB_NETDEV, "2:%d");
} }
static int dump_one_netdev(int type, struct ifinfomsg *ifi, static int dump_one_netdev(int type, struct ifinfomsg *ifi,
......
...@@ -43,7 +43,7 @@ struct packet_sock_desc { ...@@ -43,7 +43,7 @@ struct packet_sock_desc {
void show_packetsk(int fd, struct cr_options *o) void show_packetsk(int fd, struct cr_options *o)
{ {
pb_show_plain(fd, PB_PACKETSK); pb_show_plain_pretty(fd, PB_PACKETSK, "5:%d");
} }
static int dump_mreqs(PacketSockEntry *psk, struct packet_sock_desc *sd) static int dump_mreqs(PacketSockEntry *psk, struct packet_sock_desc *sd)
......
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