From: Ben Pfaff Date: Tue, 6 Dec 2011 22:22:00 +0000 (-0800) Subject: netdev-linux: Translate errno value to name in log message. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a57a8488da2e6e02f515230d42a958126971ba8e;p=openvswitch netdev-linux: Translate errno value to name in log message. Signed-off-by: Ben Pfaff --- diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index a100898a..9ff286ee 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1244,8 +1244,8 @@ get_stats_via_vport(const struct netdev *netdev_, error = netdev_vport_get_stats(netdev_, stats); if (error) { - VLOG_WARN_RL(&rl, "%s: obtaining netdev stats via vport failed %d", - netdev_get_name(netdev_), error); + VLOG_WARN_RL(&rl, "%s: obtaining netdev stats via vport failed " + "(%s)", netdev_get_name(netdev_), strerror(error)); } netdev_dev->have_vport_stats = !error; netdev_dev->cache_valid |= VALID_HAVE_VPORT_STATS;