2
0
mirror of https://github.com/openvswitch/ovs synced 2025-09-02 15:25:22 +00:00

netdev-linux: Translate errno value to name in log message.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2011-12-06 14:22:00 -08:00
parent 67d91f7864
commit a57a8488da

View File

@@ -1244,8 +1244,8 @@ get_stats_via_vport(const struct netdev *netdev_,
error = netdev_vport_get_stats(netdev_, stats); error = netdev_vport_get_stats(netdev_, stats);
if (error) { if (error) {
VLOG_WARN_RL(&rl, "%s: obtaining netdev stats via vport failed %d", VLOG_WARN_RL(&rl, "%s: obtaining netdev stats via vport failed "
netdev_get_name(netdev_), error); "(%s)", netdev_get_name(netdev_), strerror(error));
} }
netdev_dev->have_vport_stats = !error; netdev_dev->have_vport_stats = !error;
netdev_dev->cache_valid |= VALID_HAVE_VPORT_STATS; netdev_dev->cache_valid |= VALID_HAVE_VPORT_STATS;