[ovs-dev] [coverity 11/12] worker: Use ovs_retval_to_string() where EOF is a possible return value.

Ben Pfaff blp at nicira.com
Thu Jan 24 22:44:36 UTC 2013


Found by Coverity.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/worker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/worker.c b/lib/worker.c
index 6ca05cd..9bcad55 100644
--- a/lib/worker.c
+++ b/lib/worker.c
@@ -379,7 +379,7 @@ worker_main(int fd)
             /* Main process closed the IPC socket.  Exit cleanly. */
             break;
         } else if (error != EAGAIN) {
-            VLOG_ABORT("RPC receive failed (%s)", strerror(error));
+            VLOG_ABORT("RPC receive failed (%s)", ovs_retval_to_string(error));
         }
 
         poll_fd_wait(server_sock, POLLIN);
-- 
1.7.2.5




More information about the dev mailing list