mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
fs/poll: change format for type pollevent_t
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -293,7 +293,7 @@ static void ads7843e_notify(FAR struct ads7843e_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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ static void ajoy_sample(FAR struct ajoy_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -638,7 +638,7 @@ static int ajoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ static void btn_sample(FAR struct btn_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -690,7 +690,7 @@ static int btn_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -992,7 +992,7 @@ static void mbr3108_poll_notify(FAR struct mbr3108_dev_s *priv)
|
||||
struct pollfd *fds = priv->fds[i];
|
||||
if (fds)
|
||||
{
|
||||
mbr3108_dbg("Report events: %02x\n", fds->revents);
|
||||
mbr3108_dbg("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
|
||||
fds->revents |= POLLIN;
|
||||
nxsem_post(fds->sem);
|
||||
|
||||
@@ -273,7 +273,7 @@ static void djoy_sample(FAR struct djoy_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -632,7 +632,7 @@ static int djoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ static void max11802_notify(FAR struct max11802_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);
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -598,7 +598,7 @@ static void mxt_notify(FAR struct mxt_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);
|
||||
}
|
||||
}
|
||||
@@ -1569,7 +1569,8 @@ static int mxt_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;
|
||||
}
|
||||
|
||||
@@ -456,7 +456,7 @@ static void spq10kbd_pollnotify(FAR struct spq10kbd_dev_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
uinfo("Report events: %02x\n", fds->revents);
|
||||
uinfo("Report events: %08" PRIx32 "\n", fds->revents);
|
||||
nxsem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ static void stmpe811_notify(FAR struct stmpe811_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);
|
||||
}
|
||||
}
|
||||
@@ -634,7 +634,8 @@ static int stmpe811_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;
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ static void tsc2007_notify(FAR struct tsc2007_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);
|
||||
}
|
||||
}
|
||||
@@ -1112,7 +1112,8 @@ static int tsc2007_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