projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb-idl: Export ovsdb_idl_txn_delete() and ovsdb_idl_txn_insert().
[openvswitch]
/
lib
/
unixctl.c
diff --git
a/lib/unixctl.c
b/lib/unixctl.c
index 6378439414078940e280b54c1de618a218c72360..e648cc865efc932ffb30e79d36d17d465e235f79 100644
(file)
--- a/
lib/unixctl.c
+++ b/
lib/unixctl.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009
, 2010
Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-200,22
+200,21
@@
unixctl_server_create(const char *path, struct unixctl_server **serverp)
NULL);
if (server->fd < 0) {
error = -server->fd;
NULL);
if (server->fd < 0) {
error = -server->fd;
-
fprintf(stderr, "Could not initialize control socket %s (%s)\n
",
-
server->path, strerror(error)
);
+
ovs_error(error, "could not initialize control socket %s
",
+
server->path
);
goto error;
}
if (chmod(server->path, S_IRUSR | S_IWUSR) < 0) {
error = errno;
goto error;
}
if (chmod(server->path, S_IRUSR | S_IWUSR) < 0) {
error = errno;
- fprintf(stderr, "Failed to chmod control socket %s (%s)\n",
- server->path, strerror(error));
+ ovs_error(error, "failed to chmod control socket %s", server->path);
goto error;
}
if (listen(server->fd, 10) < 0) {
error = errno;
goto error;
}
if (listen(server->fd, 10) < 0) {
error = errno;
-
fprintf(stderr, "Failed to listen on control socket %s (%s)\n
",
-
server->path, strerror(error)
);
+
ovs_error(error, "Failed to listen on control socket %s
",
+
server->path
);
goto error;
}
goto error;
}