diff --git a/graphics/twm4nx/src/cinput.cxx b/graphics/twm4nx/src/cinput.cxx index 291234fa0..8c7788daa 100644 --- a/graphics/twm4nx/src/cinput.cxx +++ b/graphics/twm4nx/src/cinput.cxx @@ -817,7 +817,7 @@ int CInput::session(void) if ((pfd[KBD_INDEX].revents & (POLLERR | POLLHUP)) != 0) { - twmerr("ERROR: keyboard poll() failed. revents=%04x\n", + twmerr("ERROR: keyboard poll() failed. revents=%08" PRIx32 "\n", pfd[KBD_INDEX].revents); ret = -EIO; break; @@ -839,7 +839,7 @@ int CInput::session(void) if ((pfd[MOUSE_INDEX].revents & (POLLERR | POLLHUP)) != 0) { - twmerr("ERROR: Mouse poll() failed. revents=%04x\n", + twmerr("ERROR: Mouse poll() failed. revents=%08" PRIx32 "\n", pfd[MOUSE_INDEX].revents); ret = -EIO; break; diff --git a/netutils/thttpd/fdwatch.c b/netutils/thttpd/fdwatch.c index 6d9c5a3ec..22423fa15 100644 --- a/netutils/thttpd/fdwatch.c +++ b/netutils/thttpd/fdwatch.c @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/netutils/thttpd/timers.c + * apps/netutils/thttpd/fdwatch.c * FD watcher routines for poll() * * Copyright (C) 2009 Gregory Nutt. All rights reserved. @@ -296,7 +296,7 @@ int fdwatch(struct fdwatch_s *fw, long timeout_msecs) { /* Yes... save it in a shorter list */ - fwinfo("pollndx: %d fd: %d revents: %04x\n", + fwinfo("pollndx: %d fd: %d revents: %08" PRIx32 "\n", i, fw->pollfds[i].fd, fw->pollfds[i].revents); fw->ready[fw->nactive++] = fw->pollfds[i].fd;