From 25d7dfe990d0e5423e2a1abbde7fb7148cb31cb6 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Thu, 7 Apr 2022 16:11:14 +0800 Subject: [PATCH] fs/epoll: fix compile break about change type of pollevent_t Signed-off-by: chao.an --- graphics/twm4nx/src/cinput.cxx | 4 ++-- netutils/thttpd/fdwatch.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;