From 9b95425de61d9f1c4b8bb7490b1250ac03fd8243 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Thu, 18 Jan 2018 17:01:40 -0500 Subject: VCL/LD_PRELOAD: Fix unfiltered debug output. Change-Id: I625b219fe6ffd21f87a163244569a4075cd432a4 Signed-off-by: Dave Wallace --- src/vcl/vcom.c | 2 -- src/vcl/vppcom.c | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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; } -- cgit 1.2.3-korg