Commit cfb68e86 authored by Niels Möller's avatar Niels Möller
Browse files

* src/jpoll.c (poll): Use trace(), not printf, for debug messages.

Rev: src/jpoll.c:1.5
parent 79464518
......@@ -15,7 +15,6 @@
#include "jpoll.h"
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
......@@ -62,8 +61,8 @@ int poll(struct pollfd *fdlist, nfds_t count, int timeoutInMS)
for (i = 0; i < count; i++) {
if (FD_ISSET(fdlist[i].fd, &readfdset)) fdlist[i].revents |= POLLIN;
if (FD_ISSET(fdlist[i].fd, &writefdset)) fdlist[i].revents |= POLLOUT;
printf("Set FD %d = %d\n", i, fdlist[i].revents);
trace("jpoll.c: Set FD %i = %i\n", i, fdlist[i].revents);
}
printf("Returning %d\n", ret);
trace("jpoll.c: Returning %i\n", ret);
return(ret);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment