summaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-01-29 08:55:25 -0800
committerFlorin Coras <fcoras@cisco.com>2018-01-29 09:02:43 -0800
commitbb16d3ffecd357907d01f2785ac78edf0292cfd3 (patch)
tree620eebcd7b6fd5dec909431e7618ee13fe246c61 /src/vcl
parentc592ca527acee041ef330bb27de35764d746202c (diff)
vcl: fix VPPCOM_ATTR_GET_LIBC_EPFD elog
Change-Id: Idc3e8f4ee69d8871534a94d4f485e695fac81756 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vppcom.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 29e5a108d0e..167a74591e7 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -4558,21 +4558,15 @@ vppcom_session_attr (uint32_t session_index, uint32_t op,
/* *INDENT-OFF* */
ELOG_TYPE_DECLARE (e) =
{
- .format = "VPPCOM_ATTR_GET_LIBC_EPFD: libc_epfd=%s%d buflen=%d",
- .format_args = "t1i4i4",
- .n_enum_strings = 2,
- .enum_strings = {"", "-",},
+ .format = "VPPCOM_ATTR_GET_LIBC_EPFD: libc_epfd=%d",
+ .format_args = "i4",
};
CLIB_PACKED (struct {
- u8 sign;
- u32 data[2];
+ i32 data;
}) * ed;
ed = ELOG_TRACK_DATA (&vcm->elog_main, e, session->elog_track);
-
- ed->sign = (session->libc_epfd < 0);
- ed->data[0] = abs(session->libc_epfd);
- ed->data[1] = *buflen;
+ ed->data = session->libc_epfd;
/* *INDENT-ON* */
}