[ovs-dev] [flow-stats 02/14] netdev-linux: Translate errno value to name in log message.

Ethan Jackson ethan at nicira.com
Tue Dec 13 21:40:41 UTC 2011


Looks good.

Ethan

On Thu, Dec 8, 2011 at 14:01, Ben Pfaff <blp at nicira.com> wrote:
> ---
>  lib/netdev-linux.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
> index a100898..9ff286e 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;
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list