aio_kqueue_test: fix the build when DEBUG=1
Also, make the debug output more verbose
This commit is contained in:
parent
604bbb3f3c
commit
c189c73f01
@ -170,18 +170,25 @@ main (int argc, char *argv[])
|
|||||||
kq_iocb = kq_returned.udata;
|
kq_iocb = kq_returned.udata;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("kevent %d %d errno %d return.ident %p "
|
printf("kevent %d %d errno %d return.ident %p "
|
||||||
"return.data %p return.udata %p %p\n",
|
"return.data %p return.udata %p %p"
|
||||||
|
" filter %d flags %#x fflags %#x\n",
|
||||||
i, result, error,
|
i, result, error,
|
||||||
(void*)kq_returned.ident,
|
(void*)kq_returned.ident,
|
||||||
(void*)kq_returned.data,
|
(void*)kq_returned.data,
|
||||||
kq_returned.udata,
|
kq_returned.udata,
|
||||||
kq_iocb);
|
kq_iocb,
|
||||||
|
kq_returned.filter,
|
||||||
|
kq_returned.flags,
|
||||||
|
kq_returned.fflags);
|
||||||
|
if (result > 0)
|
||||||
|
printf("\tsigev_notify_kevent_flags %#x\n",
|
||||||
|
((struct aiocb*)(kq_returned.ident))->aio_sigevent.sigev_notify_kevent_flags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (kq_iocb)
|
if (kq_iocb)
|
||||||
break;
|
break;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf("Try again left %d out of %lu %d\n",
|
printf("Try again left %d out of %d %d\n",
|
||||||
pending, max_queue_per_proc, cancel);
|
pending, max_queue_per_proc, cancel);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user