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]
/
lib
/
vlog.c
diff --git
a/lib/vlog.c
b/lib/vlog.c
index
193e4f7
..
f87f48f
100644
(file)
--- a/
lib/vlog.c
+++ b/
lib/vlog.c
@@
-320,7
+320,7
@@
vlog_set_log_file(const char *file_name)
/* Log success or failure. */
if (log_fd < 0) {
VLOG_WARN("failed to open %s for logging: %s",
/* Log success or failure. */
if (log_fd < 0) {
VLOG_WARN("failed to open %s for logging: %s",
- log_file_name, strerror(errno));
+ log_file_name,
ovs_
strerror(errno));
error = errno;
} else {
VLOG_INFO("opened log file %s", log_file_name);
error = errno;
} else {
VLOG_INFO("opened log file %s", log_file_name);
@@
-489,7
+489,7
@@
vlog_unixctl_reopen(struct unixctl_conn *conn, int argc OVS_UNUSED,
if (log_file_name) {
int error = vlog_reopen_log_file();
if (error) {
if (log_file_name) {
int error = vlog_reopen_log_file();
if (error) {
- unixctl_command_reply_error(conn, strerror(errno));
+ unixctl_command_reply_error(conn,
ovs_
strerror(errno));
} else {
unixctl_command_reply(conn, NULL);
}
} else {
unixctl_command_reply(conn, NULL);
}