You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/27 03:28:28 UTC
[incubator-nuttx-apps] 04/07: netutils/thttpd/fdwatch.c: Fix syslog
formats
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 9aeade97d539990a6d4273e363a6fb4ad4b56a87
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Nov 26 19:47:00 2020 +0900
netutils/thttpd/fdwatch.c: Fix syslog formats
---
netutils/thttpd/fdwatch.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/netutils/thttpd/fdwatch.c b/netutils/thttpd/fdwatch.c
index d0d08fb..c071ea6 100644
--- a/netutils/thttpd/fdwatch.c
+++ b/netutils/thttpd/fdwatch.c
@@ -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);