netutils/thttpd/fdwatch.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-26 19:47:00 +09:00 committed by Xiang Xiao
parent d4f751f41f
commit 9aeade97d5

View File

@ -123,7 +123,7 @@ static int fdwatch_pollndx(FAR struct fdwatch_s *fw, int fd)
}
}
fwerr("ERROR: No poll index for fd %d: %d\n", fd);
fwerr("ERROR: No poll index for fd %d\n", fd);
return -1;
}
@ -275,7 +275,7 @@ int fdwatch(struct fdwatch_s *fw, long timeout_msecs)
*/
fdwatch_dump("Before waiting:", fw);
fwinfo("Waiting... (timeout %d)\n", timeout_msecs);
fwinfo("Waiting... (timeout %ld)\n", timeout_msecs);
fw->nactive = 0;
fw->next = 0;
ret = poll(fw->pollfds, fw->nwatched, (int)timeout_msecs);