mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
fs/poll: change format for type pollevent_t
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -215,7 +215,7 @@ static void ft5x06_notify(FAR struct ft5x06_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -1024,7 +1024,8 @@ static int ft5x06_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
if ((fds->events & POLLIN) == 0)
|
||||
{
|
||||
ierr("ERROR: Missing POLLIN: revents: %08x\n", fds->revents);
|
||||
ierr("ERROR: Missing POLLIN: revents: %08" PRIx32 "\n",
|
||||
fds->revents);
|
||||
ret = -EDEADLK;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user