git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all uses of strerror() by ovs_strerror(), for thread safety.
[sliver-openvswitch.git]
/
ofproto
/
connmgr.c
diff --git
a/ofproto/connmgr.c
b/ofproto/connmgr.c
index
01b894f
..
4264934
100644
(file)
--- a/
ofproto/connmgr.c
+++ b/
ofproto/connmgr.c
@@
-315,7
+315,7
@@
connmgr_run(struct connmgr *mgr,
ofconn_set_rate_limit(ofconn, ofservice->rate_limit,
ofservice->burst_limit);
} else if (retval != EAGAIN) {
ofconn_set_rate_limit(ofconn, ofservice->rate_limit,
ofservice->burst_limit);
} else if (retval != EAGAIN) {
- VLOG_WARN_RL(&rl, "accept failed (%s)", strerror(retval));
+ VLOG_WARN_RL(&rl, "accept failed (%s)",
ovs_
strerror(retval));
}
}
}
}
@@
-327,7
+327,7
@@
connmgr_run(struct connmgr *mgr,
if (!retval) {
add_snooper(mgr, vconn);
} else if (retval != EAGAIN) {
if (!retval) {
add_snooper(mgr, vconn);
} else if (retval != EAGAIN) {
- VLOG_WARN_RL(&rl, "accept failed (%s)", strerror(retval));
+ VLOG_WARN_RL(&rl, "accept failed (%s)",
ovs_
strerror(retval));
}
}
}
}
}
}
@@
-758,7
+758,7
@@
set_pvconns(struct pvconn ***pvconnsp, size_t *n_pvconnsp,
if (!error) {
pvconns[n_pvconns++] = pvconn;
} else {
if (!error) {
pvconns[n_pvconns++] = pvconn;
} else {
- VLOG_ERR("failed to listen on %s: %s", name, strerror(error));
+ VLOG_ERR("failed to listen on %s: %s", name,
ovs_
strerror(error));
if (!retval) {
retval = error;
}
if (!retval) {
retval = error;
}