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;
if (VCOM_DEBUG > 1)
clib_warning ("LDP<%d>: fd %d (0x%x): calling %s(): "
"sid %u (0x%x), optlen %d",
- getpid (), fd, fd, func_str, sid, sid, *optlen);
+ getpid (), fd, fd, func_str, sid, sid, buflen);
rv = vppcom_session_attr (sid, VPPCOM_ATTR_GET_RX_FIFO_LEN,
optval, optlen);
break;
getpid (), epfd, epfd, func_str,
libc_epfd, libc_epfd, events, maxevents, sigmask);
- rv = libc_epoll_pwait (epfd, events, maxevents, 1, sigmask);
+ rv = libc_epoll_pwait (libc_epfd, events, maxevents, 1, sigmask);
if (rv != 0)
goto done;
}
done:
if (VCOM_DEBUG > 3)
{
+ if (libc_epfd > 0)
+ epfd = libc_epfd;
if (rv < 0)
{
int errno_val = errno;