From 2dd88e5d65c5d36d12311dae3127c0d9a24a9398 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 22 Jan 2015 22:03:02 -0800 Subject: [PATCH] test-sflow: Fix error message when a socket cannot be opened. The error message should name the socket, which is 'target', not argv[1], which might be anything. Signed-off-by: Ben Pfaff Acked-by: Thomas Graf --- tests/test-sflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-sflow.c b/tests/test-sflow.c index 959cd6c53..4f7940db9 100644 --- a/tests/test-sflow.c +++ b/tests/test-sflow.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012, 2013, 2014 Nicira, Inc. + * Copyright (c) 2011, 2012, 2013, 2014, 2015 Nicira, Inc. * Copyright (c) 2013 InMon Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -647,7 +647,7 @@ test_sflow_main(int argc, char *argv[]) sock = inet_open_passive(SOCK_DGRAM, target, 0, NULL, 0, true); if (sock < 0) { - ovs_fatal(0, "%s: failed to open (%s)", argv[1], ovs_strerror(-sock)); + ovs_fatal(0, "%s: failed to open (%s)", target, ovs_strerror(-sock)); } daemon_save_fd(STDOUT_FILENO); -- 2.20.1