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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331104
@ -170,18 +170,25 @@ main (int argc, char *argv[])
|
||||
kq_iocb = kq_returned.udata;
|
||||
#ifdef DEBUG
|
||||
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,
|
||||
(void*)kq_returned.ident,
|
||||
(void*)kq_returned.data,
|
||||
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
|
||||
|
||||
if (kq_iocb)
|
||||
break;
|
||||
#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);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user