diff options
author | Ben Pfaff <blp@nicira.com> | 2013-06-24 10:54:49 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-06-28 16:09:38 -0700 |
commit | 10a89ef04df5669c5cdd02f786150a7ab8454e01 (patch) | |
tree | 8c921735df6d0dca97df88af70e986c4fdf38dca /lib/dpif-netdev.c | |
parent | 5fcbed7479c5f1d2cc08c3f544f10dbbe8ec0d90 (diff) |
Replace all uses of strerror() by ovs_strerror(), for thread safety.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 8e5e6df7..f8f1f881 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -406,7 +406,7 @@ do_add_port(struct dp_netdev *dp, const char *devname, const char *type, if (error && !(error == EOPNOTSUPP && dpif_netdev_class_is_dummy(dp->class))) { VLOG_ERR("%s: cannot receive packets on this network device (%s)", - devname, strerror(errno)); + devname, ovs_strerror(errno)); netdev_close(netdev); return error; } @@ -1094,7 +1094,7 @@ dpif_netdev_run(struct dpif *dpif) static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); VLOG_ERR_RL(&rl, "error receiving data from %s: %s", - netdev_get_name(port->netdev), strerror(error)); + netdev_get_name(port->netdev), ovs_strerror(error)); } } ofpbuf_uninit(&packet); |