summaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2018-01-18 17:01:40 -0500
committerDave Barach <openvpp@barachs.net>2018-01-20 14:28:32 +0000
commit9b95425de61d9f1c4b8bb7490b1250ac03fd8243 (patch)
tree30b76658690e5ea095744cc0339a3442e3177b4c /src/vcl
parentd47c509af13ddcb80f82aebd25dc4f40cc778a0e (diff)
VCL/LD_PRELOAD: Fix unfiltered debug output.
Change-Id: I625b219fe6ffd21f87a163244569a4075cd432a4 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vcom.c2
-rw-r--r--src/vcl/vppcom.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/vcl/vcom.c b/src/vcl/vcom.c
index ef468815f2a..592be1b1b51 100644
--- a/src/vcl/vcom.c
+++ b/src/vcl/vcom.c
@@ -1587,8 +1587,6 @@ getpeername (int fd, __SOCKADDR_ARG addr, socklen_t * __restrict len)
if ((errno = -vcom_init ()))
return -1;
- clib_warning ("LDP<%d>: fd %d (0x%x) ", getpid (), fd, fd);
-
if (sid != INVALID_SESSION_ID)
{
vppcom_endpt_t ep;
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 373304ba120..aa149b76a9b 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -441,6 +441,10 @@ vppcom_connect_to_vpp (char *app_name)
vcm->vl_input_queue = am->shmem_hdr->vl_input_queue;
vcm->my_client_index = am->my_client_index;
vcm->app_state = STATE_APP_CONN_VPP;
+
+ if (VPPCOM_DEBUG > 0)
+ clib_warning ("VCL<%d>: app (%s) is connected to VPP!",
+ getpid (), app_name);
}
if (VPPCOM_DEBUG > 0)
@@ -471,9 +475,6 @@ vppcom_connect_to_vpp (char *app_name)
ed->data = rv;
/* *INDENT-ON* */
}
-
- clib_warning ("VCL<%d>: app (%s) is connected to VPP!",
- getpid (), app_name);
return rv;
}