Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2018 17:52:47 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331104 - head/tests/sys/aio
Message-ID:  <201803171752.w2HHqldu079476@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Sat Mar 17 17:52:47 2018
New Revision: 331104
URL: https://svnweb.freebsd.org/changeset/base/331104

Log:
  aio_kqueue_test: fix the build when DEBUG=1
  
  Also, make the debug output more verbose

Modified:
  head/tests/sys/aio/aio_kqueue_test.c

Modified: head/tests/sys/aio/aio_kqueue_test.c
==============================================================================
--- head/tests/sys/aio/aio_kqueue_test.c	Sat Mar 17 17:48:21 2018	(r331103)
+++ head/tests/sys/aio/aio_kqueue_test.c	Sat Mar 17 17:52:47 2018	(r331104)
@@ -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
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803171752.w2HHqldu079476>