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

Ethan Jackson ethan at nicira.com
Fri Feb 1 21:58:21 UTC 2013


Acked-by: Ethan Jackson <ethan at nicira.com>

On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff <blp at nicira.com> wrote:
> 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
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list