summaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps/vcl/sock_test_server.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-07-01 08:29:39 -0700
committerDave Barach <openvpp@barachs.net>2019-07-02 11:52:29 +0000
commitf4f73340d61e3af199291344e36a01d289f095f0 (patch)
treedbc7ac0fd041d6f708acef515822659a2508e4e8 /src/plugins/hs_apps/vcl/sock_test_server.c
parent7beaa3df427cb61141ed36307f17e981cdafcd53 (diff)
vcl: fix sock client and server tests
Type:fix Reported by coverity. Change-Id: Ie623c5aa3ef54b649039c5ffa10476373c532825 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/plugins/hs_apps/vcl/sock_test_server.c')
-rw-r--r--src/plugins/hs_apps/vcl/sock_test_server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/hs_apps/vcl/sock_test_server.c b/src/plugins/hs_apps/vcl/sock_test_server.c
index 59dae179cd8..0714ccce01e 100644
--- a/src/plugins/hs_apps/vcl/sock_test_server.c
+++ b/src/plugins/hs_apps/vcl/sock_test_server.c
@@ -339,9 +339,8 @@ af_unix_echo (void)
errno_val = errno;
perror ("ERROR in af_unix_echo(): read() failed");
fprintf (stderr, "SERVER: ERROR: read(af_unix_client_fd %d (0x%x), "
- "\"%s\", nbytes %lu) failed (errno = %d)!\n",
- af_unix_client_fd, af_unix_client_fd, buffer, nbytes,
- errno_val);
+ "nbytes %lu) failed (errno = %d)!\n", af_unix_client_fd,
+ af_unix_client_fd, nbytes, errno_val);
goto done;
}