summaryrefslogtreecommitdiff
path: root/patlooptest.c
diff options
context:
space:
mode:
Diffstat (limited to 'patlooptest.c')
-rwxr-xr-xpatlooptest.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/patlooptest.c b/patlooptest.c
index 405ccf8..2f3f2c7 100755
--- a/patlooptest.c
+++ b/patlooptest.c
@@ -80,7 +80,9 @@ int main(int argc, char *argv[])
res = write(fd,outbuf,bs);
if (res != bs)
{
- printf("Res is %d\n", res);
+ printf("Res is %d: %s\n", res, strerror(errno));
+ ioctl(fd, ZT_GETEVENT, &x);
+ printf("Event: %d\n", x);
exit(1);
}