mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
+19
-19
@@ -279,7 +279,7 @@ static uint16_t ads7843e_sendcmd(FAR struct ads7843e_dev_s *priv, uint8_t cmd)
|
||||
result = ((uint16_t)buffer[0] << 8) | (uint16_t)buffer[1];
|
||||
result = result >> 4;
|
||||
|
||||
ivdbg("cmd:%02x response:%04x\n", cmd, result);
|
||||
iinfo("cmd:%02x response:%04x\n", cmd, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ static void ads7843e_notify(FAR struct ads7843e_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -416,7 +416,7 @@ static int ads7843e_waitsample(FAR struct ads7843e_dev_s *priv,
|
||||
{
|
||||
/* Wait for a change in the ADS7843E state */
|
||||
|
||||
ivdbg("Waiting..\n");
|
||||
iinfo("Waiting..\n");
|
||||
priv->nwaiters++;
|
||||
ret = sem_wait(&priv->waitsem);
|
||||
priv->nwaiters--;
|
||||
@@ -434,7 +434,7 @@ static int ads7843e_waitsample(FAR struct ads7843e_dev_s *priv,
|
||||
}
|
||||
}
|
||||
|
||||
ivdbg("Sampled\n");
|
||||
iinfo("Sampled\n");
|
||||
|
||||
/* Re-acquire the semaphore that manages mutually exclusive access to
|
||||
* the device structure. We may have to wait here. But we have our sample.
|
||||
@@ -749,7 +749,7 @@ static int ads7843e_open(FAR struct file *filep)
|
||||
uint8_t tmp;
|
||||
int ret;
|
||||
|
||||
ivdbg("Opening\n");
|
||||
iinfo("Opening\n");
|
||||
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
@@ -791,7 +791,7 @@ errout_with_sem:
|
||||
sem_post(&priv->devsem);
|
||||
return ret;
|
||||
#else
|
||||
ivdbg("Opening\n");
|
||||
iinfo("Opening\n");
|
||||
return OK;
|
||||
#endif
|
||||
}
|
||||
@@ -807,7 +807,7 @@ static int ads7843e_close(FAR struct file *filep)
|
||||
FAR struct ads7843e_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("Closing\n");
|
||||
iinfo("Closing\n");
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -837,7 +837,7 @@ static int ads7843e_close(FAR struct file *filep)
|
||||
|
||||
sem_post(&priv->devsem);
|
||||
#endif
|
||||
ivdbg("Closing\n");
|
||||
iinfo("Closing\n");
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -853,7 +853,7 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le
|
||||
struct ads7843e_sample_s sample;
|
||||
int ret;
|
||||
|
||||
ivdbg("buffer:%p len:%d\n", buffer, len);
|
||||
iinfo("buffer:%p len:%d\n", buffer, len);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -896,7 +896,7 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le
|
||||
* option, then just return an error.
|
||||
*/
|
||||
|
||||
ivdbg("Sample data is not available\n");
|
||||
iinfo("Sample data is not available\n");
|
||||
if (filep->f_oflags & O_NONBLOCK)
|
||||
{
|
||||
ret = -EAGAIN;
|
||||
@@ -957,16 +957,16 @@ static ssize_t ads7843e_read(FAR struct file *filep, FAR char *buffer, size_t le
|
||||
report->point[0].flags = TOUCH_MOVE | TOUCH_ID_VALID | TOUCH_POS_VALID;
|
||||
}
|
||||
|
||||
ivdbg(" id: %d\n", report->point[0].id);
|
||||
ivdbg(" flags: %02x\n", report->point[0].flags);
|
||||
ivdbg(" x: %d\n", report->point[0].x);
|
||||
ivdbg(" y: %d\n", report->point[0].y);
|
||||
iinfo(" id: %d\n", report->point[0].id);
|
||||
iinfo(" flags: %02x\n", report->point[0].flags);
|
||||
iinfo(" x: %d\n", report->point[0].x);
|
||||
iinfo(" y: %d\n", report->point[0].y);
|
||||
|
||||
ret = SIZEOF_TOUCH_SAMPLE_S(1);
|
||||
|
||||
errout:
|
||||
sem_post(&priv->devsem);
|
||||
ivdbg("Returning: %d\n", ret);
|
||||
iinfo("Returning: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -980,7 +980,7 @@ static int ads7843e_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct ads7843e_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("cmd: %d arg: %ld\n", cmd, arg);
|
||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1040,7 +1040,7 @@ static int ads7843e_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
ivdbg("setup: %d\n", (int)setup);
|
||||
iinfo("setup: %d\n", (int)setup);
|
||||
DEBUGASSERT(filep && fds);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1156,7 +1156,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi,
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
ivdbg("spi: %p minor: %d\n", spi, minor);
|
||||
iinfo("spi: %p minor: %d\n", spi, minor);
|
||||
|
||||
/* Debug-only sanity checks */
|
||||
|
||||
@@ -1219,7 +1219,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi,
|
||||
/* Register the device as an input device */
|
||||
|
||||
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor);
|
||||
ivdbg("Registering %s\n", devname);
|
||||
iinfo("Registering %s\n", devname);
|
||||
|
||||
ret = register_driver(devname, &ads7843e_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
|
||||
+14
-14
@@ -352,7 +352,7 @@ static void ajoy_sample(FAR struct ajoy_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -414,7 +414,7 @@ static int ajoy_open(FAR struct file *filep)
|
||||
ret = ajoy_takesem(&priv->au_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ static int ajoy_open(FAR struct file *filep)
|
||||
opriv = (FAR struct ajoy_open_s *)kmm_zalloc(sizeof(struct ajoy_open_s));
|
||||
if (!opriv)
|
||||
{
|
||||
ivdbg("ERROR: Failled to allocate open structure\n");
|
||||
iinfo("ERROR: Failled to allocate open structure\n");
|
||||
ret = -ENOMEM;
|
||||
goto errout_with_sem;
|
||||
}
|
||||
@@ -502,7 +502,7 @@ static int ajoy_close(FAR struct file *filep)
|
||||
ret = ajoy_takesem(&priv->au_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ static int ajoy_close(FAR struct file *filep)
|
||||
DEBUGASSERT(curr);
|
||||
if (!curr)
|
||||
{
|
||||
ivdbg("ERROR: Failed to find open entry\n");
|
||||
iinfo("ERROR: Failed to find open entry\n");
|
||||
ret = -ENOENT;
|
||||
goto errout_with_exclsem;
|
||||
}
|
||||
@@ -570,7 +570,7 @@ static ssize_t ajoy_read(FAR struct file *filep, FAR char *buffer,
|
||||
|
||||
if (len < sizeof(struct ajoy_sample_s))
|
||||
{
|
||||
ivdbg("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
iinfo("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ static ssize_t ajoy_read(FAR struct file *filep, FAR char *buffer,
|
||||
ret = ajoy_takesem(&priv->au_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -620,7 +620,7 @@ static int ajoy_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
ret = ajoy_takesem(&priv->au_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -720,7 +720,7 @@ static int ajoy_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
#endif
|
||||
|
||||
default:
|
||||
ivdbg("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
iinfo("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
@@ -754,7 +754,7 @@ static int ajoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
ret = ajoy_takesem(&priv->au_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: ajoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -782,7 +782,7 @@ static int ajoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
if (i >= CONFIG_AJOYSTICK_NPOLLWAITERS)
|
||||
{
|
||||
ivdbg("ERROR: Too man poll waiters\n");
|
||||
iinfo("ERROR: Too man poll waiters\n");
|
||||
fds->priv = NULL;
|
||||
ret = -EBUSY;
|
||||
goto errout_with_dusem;
|
||||
@@ -797,7 +797,7 @@ static int ajoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!slot)
|
||||
{
|
||||
ivdbg("ERROR: Poll slot not found\n");
|
||||
iinfo("ERROR: Poll slot not found\n");
|
||||
ret = -EIO;
|
||||
goto errout_with_dusem;
|
||||
}
|
||||
@@ -856,7 +856,7 @@ int ajoy_register(FAR const char *devname,
|
||||
|
||||
if (!priv)
|
||||
{
|
||||
ivdbg("ERROR: Failed to allocate device structure\n");
|
||||
iinfo("ERROR: Failed to allocate device structure\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -878,7 +878,7 @@ int ajoy_register(FAR const char *devname,
|
||||
ret = register_driver(devname, &ajoy_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: register_driver failed: %d\n", ret);
|
||||
iinfo("ERROR: register_driver failed: %d\n", ret);
|
||||
goto errout_with_priv;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ static FAR void *g_btnarg;
|
||||
|
||||
static btn_buttonset_t btn_supported(FAR const struct btn_lowerhalf_s *lower)
|
||||
{
|
||||
ivdbg("NUM_BUTTONS: %02x\n", NUM_BUTTONS);
|
||||
iinfo("NUM_BUTTONS: %02x\n", NUM_BUTTONS);
|
||||
return (btn_buttonset_t)((1 << NUM_BUTTONS) - 1);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ static void btn_enable(FAR const struct btn_lowerhalf_s *lower,
|
||||
flags = enter_critical_section();
|
||||
btn_disable();
|
||||
|
||||
illvdbg("press: %02x release: %02x handler: %p arg: %p\n",
|
||||
illinfo("press: %02x release: %02x handler: %p arg: %p\n",
|
||||
press, release, handler, arg);
|
||||
|
||||
/* If no events are indicated or if no handler is provided, then this
|
||||
|
||||
@@ -348,7 +348,7 @@ static void btn_sample(FAR struct btn_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -410,7 +410,7 @@ static int btn_open(FAR struct file *filep)
|
||||
ret = btn_takesem(&priv->bu_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: btn_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: btn_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -419,7 +419,7 @@ static int btn_open(FAR struct file *filep)
|
||||
opriv = (FAR struct btn_open_s *)kmm_zalloc(sizeof(struct btn_open_s));
|
||||
if (!opriv)
|
||||
{
|
||||
ivdbg("ERROR: Failled to allocate open structure\n");
|
||||
iinfo("ERROR: Failled to allocate open structure\n");
|
||||
ret = -ENOMEM;
|
||||
goto errout_with_sem;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ static int btn_close(FAR struct file *filep)
|
||||
ret = btn_takesem(&priv->bu_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: btn_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: btn_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -511,7 +511,7 @@ static int btn_close(FAR struct file *filep)
|
||||
DEBUGASSERT(curr);
|
||||
if (!curr)
|
||||
{
|
||||
ivdbg("ERROR: Failed to find open entry\n");
|
||||
iinfo("ERROR: Failed to find open entry\n");
|
||||
ret = -ENOENT;
|
||||
goto errout_with_exclsem;
|
||||
}
|
||||
@@ -566,7 +566,7 @@ static ssize_t btn_read(FAR struct file *filep, FAR char *buffer,
|
||||
|
||||
if (len < sizeof(btn_buttonset_t))
|
||||
{
|
||||
ivdbg("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
iinfo("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -575,7 +575,7 @@ static ssize_t btn_read(FAR struct file *filep, FAR char *buffer,
|
||||
ret = btn_takesem(&priv->bu_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: btn_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: btn_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -612,7 +612,7 @@ static int btn_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
ret = btn_takesem(&priv->bu_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: btn_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: btn_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -712,7 +712,7 @@ static int btn_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
#endif
|
||||
|
||||
default:
|
||||
ivdbg("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
iinfo("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
@@ -746,7 +746,7 @@ static int btn_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
ret = btn_takesem(&priv->bu_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: btn_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: btn_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -774,7 +774,7 @@ static int btn_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
if (i >= CONFIG_BUTTONS_NPOLLWAITERS)
|
||||
{
|
||||
ivdbg("ERROR: Too man poll waiters\n");
|
||||
iinfo("ERROR: Too man poll waiters\n");
|
||||
fds->priv = NULL;
|
||||
ret = -EBUSY;
|
||||
goto errout_with_dusem;
|
||||
@@ -789,7 +789,7 @@ static int btn_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!slot)
|
||||
{
|
||||
ivdbg("ERROR: Poll slot not found\n");
|
||||
iinfo("ERROR: Poll slot not found\n");
|
||||
ret = -EIO;
|
||||
goto errout_with_dusem;
|
||||
}
|
||||
@@ -847,7 +847,7 @@ int btn_register(FAR const char *devname,
|
||||
|
||||
if (!priv)
|
||||
{
|
||||
ivdbg("ERROR: Failed to allocate device structure\n");
|
||||
iinfo("ERROR: Failed to allocate device structure\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -869,7 +869,7 @@ int btn_register(FAR const char *devname,
|
||||
ret = register_driver(devname, &btn_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: register_driver failed: %d\n", ret);
|
||||
iinfo("ERROR: register_driver failed: %d\n", ret);
|
||||
goto errout_with_priv;
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -352,7 +352,7 @@ static void djoy_sample(FAR struct djoy_upperhalf_s *priv)
|
||||
fds->revents |= (fds->events & POLLIN);
|
||||
if (fds->revents != 0)
|
||||
{
|
||||
illvdbg("Report events: %02x\n", fds->revents);
|
||||
illinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -414,7 +414,7 @@ static int djoy_open(FAR struct file *filep)
|
||||
ret = djoy_takesem(&priv->du_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ static int djoy_open(FAR struct file *filep)
|
||||
opriv = (FAR struct djoy_open_s *)kmm_zalloc(sizeof(struct djoy_open_s));
|
||||
if (!opriv)
|
||||
{
|
||||
ivdbg("ERROR: Failled to allocate open structure\n");
|
||||
iinfo("ERROR: Failled to allocate open structure\n");
|
||||
ret = -ENOMEM;
|
||||
goto errout_with_sem;
|
||||
}
|
||||
@@ -502,7 +502,7 @@ static int djoy_close(FAR struct file *filep)
|
||||
ret = djoy_takesem(&priv->du_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ static int djoy_close(FAR struct file *filep)
|
||||
DEBUGASSERT(curr);
|
||||
if (!curr)
|
||||
{
|
||||
ivdbg("ERROR: Failed to find open entry\n");
|
||||
iinfo("ERROR: Failed to find open entry\n");
|
||||
ret = -ENOENT;
|
||||
goto errout_with_exclsem;
|
||||
}
|
||||
@@ -568,7 +568,7 @@ static ssize_t djoy_read(FAR struct file *filep, FAR char *buffer,
|
||||
|
||||
if (len < sizeof(djoy_buttonset_t))
|
||||
{
|
||||
ivdbg("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
iinfo("ERROR: buffer too small: %lu\n", (unsigned long)len);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -577,7 +577,7 @@ static ssize_t djoy_read(FAR struct file *filep, FAR char *buffer,
|
||||
ret = djoy_takesem(&priv->du_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -616,7 +616,7 @@ static int djoy_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
ret = djoy_takesem(&priv->du_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -716,7 +716,7 @@ static int djoy_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
#endif
|
||||
|
||||
default:
|
||||
ivdbg("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
iinfo("ERROR: Unrecognized command: %ld\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
@@ -750,7 +750,7 @@ static int djoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
ret = djoy_takesem(&priv->du_exclsem);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
iinfo("ERROR: djoy_takesem failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -778,7 +778,7 @@ static int djoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
if (i >= CONFIG_DJOYSTICK_NPOLLWAITERS)
|
||||
{
|
||||
ivdbg("ERROR: Too man poll waiters\n");
|
||||
iinfo("ERROR: Too man poll waiters\n");
|
||||
fds->priv = NULL;
|
||||
ret = -EBUSY;
|
||||
goto errout_with_dusem;
|
||||
@@ -793,7 +793,7 @@ static int djoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!slot)
|
||||
{
|
||||
ivdbg("ERROR: Poll slot not found\n");
|
||||
iinfo("ERROR: Poll slot not found\n");
|
||||
ret = -EIO;
|
||||
goto errout_with_dusem;
|
||||
}
|
||||
@@ -852,7 +852,7 @@ int djoy_register(FAR const char *devname,
|
||||
|
||||
if (!priv)
|
||||
{
|
||||
ivdbg("ERROR: Failed to allocate device structure\n");
|
||||
iinfo("ERROR: Failed to allocate device structure\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -874,7 +874,7 @@ int djoy_register(FAR const char *devname,
|
||||
ret = register_driver(devname, &djoy_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
ivdbg("ERROR: register_driver failed: %d\n", ret);
|
||||
iinfo("ERROR: register_driver failed: %d\n", ret);
|
||||
sem_destroy(&priv->du_exclsem);
|
||||
kmm_free(priv);
|
||||
}
|
||||
|
||||
+24
-24
@@ -244,7 +244,7 @@ static uint16_t max11802_sendcmd(FAR struct max11802_dev_s *priv,
|
||||
*tags = result & 0xF;
|
||||
result >>= 4; /* Get rid of tags */
|
||||
|
||||
ivdbg("cmd:%02x response:%04x\n", cmd, result);
|
||||
iinfo("cmd:%02x response:%04x\n", cmd, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -284,7 +284,7 @@ static void max11802_notify(FAR struct max11802_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -381,7 +381,7 @@ static int max11802_waitsample(FAR struct max11802_dev_s *priv,
|
||||
{
|
||||
/* Wait for a change in the MAX11802 state */
|
||||
|
||||
ivdbg("Waiting..\n");
|
||||
iinfo("Waiting..\n");
|
||||
priv->nwaiters++;
|
||||
ret = sem_wait(&priv->waitsem);
|
||||
priv->nwaiters--;
|
||||
@@ -399,7 +399,7 @@ static int max11802_waitsample(FAR struct max11802_dev_s *priv,
|
||||
}
|
||||
}
|
||||
|
||||
ivdbg("Sampled\n");
|
||||
iinfo("Sampled\n");
|
||||
|
||||
/* Re-acquire the semaphore that manages mutually exclusive access to
|
||||
* the device structure. We may have to wait here. But we have our
|
||||
@@ -540,11 +540,11 @@ static void max11802_worker(FAR void *arg)
|
||||
|
||||
if (pendown)
|
||||
{
|
||||
ivdbg("\nPD\n");
|
||||
iinfo("\nPD\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ivdbg("\nPU\n");
|
||||
iinfo("\nPU\n");
|
||||
}
|
||||
|
||||
if (!pendown)
|
||||
@@ -559,7 +559,7 @@ static void max11802_worker(FAR void *arg)
|
||||
* reported).
|
||||
*/
|
||||
|
||||
ivdbg("\nPC%d\n", priv->sample.contact);
|
||||
iinfo("\nPC%d\n", priv->sample.contact);
|
||||
|
||||
if (priv->sample.contact == CONTACT_NONE ||
|
||||
priv->sample.contact == CONTACT_UP)
|
||||
@@ -589,7 +589,7 @@ static void max11802_worker(FAR void *arg)
|
||||
* again later.
|
||||
*/
|
||||
|
||||
ivdbg("Previous pen up event still in buffer\n");
|
||||
iinfo("Previous pen up event still in buffer\n");
|
||||
max11802_notify(priv);
|
||||
wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1,
|
||||
(uint32_t)priv);
|
||||
@@ -636,7 +636,7 @@ static void max11802_worker(FAR void *arg)
|
||||
|
||||
if ((tags & 0x03) != 0)
|
||||
{
|
||||
ivdbg("Touch ended before measurement\n");
|
||||
iinfo("Touch ended before measurement\n");
|
||||
goto ignored;
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ static int max11802_open(FAR struct file *filep)
|
||||
uint8_t tmp;
|
||||
int ret;
|
||||
|
||||
ivdbg("Opening\n");
|
||||
iinfo("Opening\n");
|
||||
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
@@ -797,7 +797,7 @@ errout_with_sem:
|
||||
sem_post(&priv->devsem);
|
||||
return ret;
|
||||
#else
|
||||
ivdbg("Opening\n");
|
||||
iinfo("Opening\n");
|
||||
return OK;
|
||||
#endif
|
||||
}
|
||||
@@ -813,7 +813,7 @@ static int max11802_close(FAR struct file *filep)
|
||||
FAR struct max11802_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("Closing\n");
|
||||
iinfo("Closing\n");
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -843,7 +843,7 @@ static int max11802_close(FAR struct file *filep)
|
||||
|
||||
sem_post(&priv->devsem);
|
||||
#endif
|
||||
ivdbg("Closing\n");
|
||||
iinfo("Closing\n");
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -860,7 +860,7 @@ static ssize_t max11802_read(FAR struct file *filep, FAR char *buffer,
|
||||
struct max11802_sample_s sample;
|
||||
int ret;
|
||||
|
||||
ivdbg("buffer:%p len:%d\n", buffer, len);
|
||||
iinfo("buffer:%p len:%d\n", buffer, len);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -903,7 +903,7 @@ static ssize_t max11802_read(FAR struct file *filep, FAR char *buffer,
|
||||
* option, then just return an error.
|
||||
*/
|
||||
|
||||
ivdbg("Sample data is not available\n");
|
||||
iinfo("Sample data is not available\n");
|
||||
if (filep->f_oflags & O_NONBLOCK)
|
||||
{
|
||||
ret = -EAGAIN;
|
||||
@@ -964,16 +964,16 @@ static ssize_t max11802_read(FAR struct file *filep, FAR char *buffer,
|
||||
report->point[0].flags = TOUCH_MOVE | TOUCH_ID_VALID | TOUCH_POS_VALID;
|
||||
}
|
||||
|
||||
ivdbg(" id: %d\n", report->point[0].id);
|
||||
ivdbg(" flags: %02x\n", report->point[0].flags);
|
||||
ivdbg(" x: %d\n", report->point[0].x);
|
||||
ivdbg(" y: %d\n", report->point[0].y);
|
||||
iinfo(" id: %d\n", report->point[0].id);
|
||||
iinfo(" flags: %02x\n", report->point[0].flags);
|
||||
iinfo(" x: %d\n", report->point[0].x);
|
||||
iinfo(" y: %d\n", report->point[0].y);
|
||||
|
||||
ret = SIZEOF_TOUCH_SAMPLE_S(1);
|
||||
|
||||
errout:
|
||||
sem_post(&priv->devsem);
|
||||
ivdbg("Returning: %d\n", ret);
|
||||
iinfo("Returning: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -987,7 +987,7 @@ static int max11802_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct max11802_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("cmd: %d arg: %ld\n", cmd, arg);
|
||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1047,7 +1047,7 @@ static int max11802_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
ivdbg("setup: %d\n", (int)setup);
|
||||
iinfo("setup: %d\n", (int)setup);
|
||||
DEBUGASSERT(filep && fds);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1159,7 +1159,7 @@ int max11802_register(FAR struct spi_dev_s *spi,
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
ivdbg("spi: %p minor: %d\n", spi, minor);
|
||||
iinfo("spi: %p minor: %d\n", spi, minor);
|
||||
|
||||
/* Debug-only sanity checks */
|
||||
|
||||
@@ -1253,7 +1253,7 @@ int max11802_register(FAR struct spi_dev_s *spi,
|
||||
/* Register the device as an input device */
|
||||
|
||||
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor);
|
||||
ivdbg("Registering %s\n", devname);
|
||||
iinfo("Registering %s\n", devname);
|
||||
|
||||
ret = register_driver(devname, &max11802_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
|
||||
+13
-13
@@ -312,7 +312,7 @@ static int mxt_getreg(FAR struct mxt_dev_s *priv, uint16_t regaddr,
|
||||
|
||||
for (retries = 1; retries <= 3; retries++)
|
||||
{
|
||||
ivdbg("retries=%d regaddr=%04x buflen=%d\n", retries, regaddr, buflen);
|
||||
iinfo("retries=%d regaddr=%04x buflen=%d\n", retries, regaddr, buflen);
|
||||
|
||||
/* Set up to write the address */
|
||||
|
||||
@@ -386,7 +386,7 @@ static int mxt_putreg(FAR struct mxt_dev_s *priv, uint16_t regaddr,
|
||||
|
||||
for (retries = 1; retries <= 3; retries++)
|
||||
{
|
||||
ivdbg("retries=%d regaddr=%04x buflen=%d\n", retries, regaddr, buflen);
|
||||
iinfo("retries=%d regaddr=%04x buflen=%d\n", retries, regaddr, buflen);
|
||||
|
||||
/* Set up to write the address */
|
||||
|
||||
@@ -611,7 +611,7 @@ static void mxt_notify(FAR struct mxt_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -796,7 +796,7 @@ static void mxt_touch_event(FAR struct mxt_dev_s *priv,
|
||||
pressure = msg->body[5];
|
||||
|
||||
status = msg->body[0];
|
||||
ivdbg("ndx=%u status=%02x pos(%u,%u) area=%u pressure=%u\n",
|
||||
iinfo("ndx=%u status=%02x pos(%u,%u) area=%u pressure=%u\n",
|
||||
ndx, status, x, y, area, pressure);
|
||||
|
||||
/* The normal sequence that we would see for a touch would be something
|
||||
@@ -1017,7 +1017,7 @@ static void mxt_worker(FAR void *arg)
|
||||
((uint32_t)msg.body[2] << 8) |
|
||||
((uint32_t)msg.body[3] << 16);
|
||||
|
||||
ivdbg("T6: status: %02x checksum: %06lx\n",
|
||||
iinfo("T6: status: %02x checksum: %06lx\n",
|
||||
status, (unsigned long)chksum);
|
||||
|
||||
retries = 0;
|
||||
@@ -1049,7 +1049,7 @@ static void mxt_worker(FAR void *arg)
|
||||
|
||||
else if (msg.id != 0xff)
|
||||
{
|
||||
ivdbg("Ignored: id=%u message={%02x %02x %02x %02x %02x %02x %02x}\n",
|
||||
iinfo("Ignored: id=%u message={%02x %02x %02x %02x %02x %02x %02x}\n",
|
||||
msg.id, msg.body[0], msg.body[1], msg.body[2], msg.body[3],
|
||||
msg.body[4], msg.body[5], msg.body[6]);
|
||||
|
||||
@@ -1490,7 +1490,7 @@ static int mxt_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct mxt_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("cmd: %d arg: %ld\n", cmd, arg);
|
||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1551,7 +1551,7 @@ static int mxt_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
ivdbg("setup: %d\n", (int)setup);
|
||||
iinfo("setup: %d\n", (int)setup);
|
||||
DEBUGASSERT(filep && fds);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1697,7 +1697,7 @@ static int mxt_getobjtab(FAR struct mxt_dev_s *priv)
|
||||
idmax = 0;
|
||||
}
|
||||
|
||||
ivdbg("%2d. type %2d addr %04x size: %d instances: %d IDs: %u-%u\n",
|
||||
iinfo("%2d. type %2d addr %04x size: %d instances: %d IDs: %u-%u\n",
|
||||
i, object->type, MXT_GETUINT16(object->addr), object->size + 1,
|
||||
object->ninstances + 1, idmin, idmax);
|
||||
|
||||
@@ -1799,10 +1799,10 @@ static int mxt_hwinitialize(FAR struct mxt_dev_s *priv)
|
||||
|
||||
info->ysize = regval;
|
||||
|
||||
ivdbg("Family: %u variant: %u version: %u.%u.%02x\n",
|
||||
iinfo("Family: %u variant: %u version: %u.%u.%02x\n",
|
||||
info->family, info->variant, info->version >> 4, info->version & 0x0f,
|
||||
info->build);
|
||||
ivdbg("Matrix size: (%u,%u) objects: %u\n",
|
||||
iinfo("Matrix size: (%u,%u) objects: %u\n",
|
||||
info->xsize, info->ysize, info->nobjects);
|
||||
|
||||
/* How many multi touch "slots" */
|
||||
@@ -1863,7 +1863,7 @@ int mxt_register(FAR struct i2c_master_s *i2c,
|
||||
char devname[DEV_NAMELEN];
|
||||
int ret;
|
||||
|
||||
ivdbg("i2c: %p minor: %d\n", i2c, minor);
|
||||
iinfo("i2c: %p minor: %d\n", i2c, minor);
|
||||
|
||||
/* Debug-only sanity checks */
|
||||
|
||||
@@ -1913,7 +1913,7 @@ int mxt_register(FAR struct i2c_master_s *i2c,
|
||||
/* Register the device as an input device */
|
||||
|
||||
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor);
|
||||
ivdbg("Registering %s\n", devname);
|
||||
iinfo("Registering %s\n", devname);
|
||||
|
||||
ret = register_driver(devname, &mxt_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
|
||||
@@ -226,7 +226,7 @@ static int stmpe811_checkid(FAR struct stmpe811_dev_s *priv)
|
||||
devid = stmpe811_getreg8(priv, STMPE811_CHIP_ID);
|
||||
devid = (uint32_t)(devid << 8);
|
||||
devid |= (uint32_t)stmpe811_getreg8(priv, STMPE811_CHIP_ID+1);
|
||||
ivdbg("devid: %04x\n", devid);
|
||||
iinfo("devid: %04x\n", devid);
|
||||
|
||||
if (devid != (uint16_t)CHIP_ID)
|
||||
{
|
||||
|
||||
@@ -196,7 +196,7 @@ static void stmpe811_notify(FAR struct stmpe811_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -464,7 +464,7 @@ static ssize_t stmpe811_read(FAR struct file *filep, FAR char *buffer, size_t le
|
||||
struct stmpe811_sample_s sample;
|
||||
int ret;
|
||||
|
||||
ivdbg("len=%d\n", len);
|
||||
iinfo("len=%d\n", len);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -589,7 +589,7 @@ static int stmpe811_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct stmpe811_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("cmd: %d arg: %ld\n", cmd, arg);
|
||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -653,7 +653,7 @@ static int stmpe811_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
ivdbg("setup: %d\n", (int)setup);
|
||||
iinfo("setup: %d\n", (int)setup);
|
||||
DEBUGASSERT(filep && fds);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -805,7 +805,7 @@ static inline void stmpe811_tscinitialize(FAR struct stmpe811_dev_s *priv)
|
||||
{
|
||||
uint8_t regval;
|
||||
|
||||
ivdbg("Initializing touchscreen controller\n");
|
||||
iinfo("Initializing touchscreen controller\n");
|
||||
|
||||
/* Enable TSC and ADC functions */
|
||||
|
||||
@@ -898,7 +898,7 @@ int stmpe811_register(STMPE811_HANDLE handle, int minor)
|
||||
char devname[DEV_NAMELEN];
|
||||
int ret;
|
||||
|
||||
ivdbg("handle=%p minor=%d\n", handle, minor);
|
||||
iinfo("handle=%p minor=%d\n", handle, minor);
|
||||
DEBUGASSERT(priv);
|
||||
|
||||
/* Get exclusive access to the device structure */
|
||||
|
||||
@@ -278,7 +278,7 @@ static void tsc2007_notify(FAR struct tsc2007_dev_s *priv)
|
||||
if (fds)
|
||||
{
|
||||
fds->revents |= POLLIN;
|
||||
ivdbg("Report events: %02x\n", fds->revents);
|
||||
iinfo("Report events: %02x\n", fds->revents);
|
||||
sem_post(fds->sem);
|
||||
}
|
||||
}
|
||||
@@ -550,7 +550,7 @@ static int tsc2007_transfer(FAR struct tsc2007_dev_s *priv, uint8_t cmd)
|
||||
*/
|
||||
|
||||
ret = (unsigned int)data12[0] << 4 | (unsigned int)data12[1] >> 4;
|
||||
ivdbg("data: 0x%04x\n", ret);
|
||||
iinfo("data: 0x%04x\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -680,7 +680,7 @@ static void tsc2007_worker(FAR void *arg)
|
||||
pressure = (x * config->rxplate * (z2 - z1)) / z1;
|
||||
pressure = (pressure + 2048) >> 12;
|
||||
|
||||
ivdbg("Position: (%d,%4d) pressure: %u z1/2: (%d,%d)\n",
|
||||
iinfo("Position: (%d,%4d) pressure: %u z1/2: (%d,%d)\n",
|
||||
x, y, pressure, z1, z2);
|
||||
|
||||
/* Ignore out of range caculcations */
|
||||
@@ -1031,7 +1031,7 @@ static int tsc2007_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct tsc2007_dev_s *priv;
|
||||
int ret;
|
||||
|
||||
ivdbg("cmd: %d arg: %ld\n", cmd, arg);
|
||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1107,7 +1107,7 @@ static int tsc2007_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
ivdbg("setup: %d\n", (int)setup);
|
||||
iinfo("setup: %d\n", (int)setup);
|
||||
DEBUGASSERT(filep && fds);
|
||||
inode = filep->f_inode;
|
||||
|
||||
@@ -1225,7 +1225,7 @@ int tsc2007_register(FAR struct i2c_master_s *dev,
|
||||
#endif
|
||||
int ret;
|
||||
|
||||
ivdbg("dev: %p minor: %d\n", dev, minor);
|
||||
iinfo("dev: %p minor: %d\n", dev, minor);
|
||||
|
||||
/* Debug-only sanity checks */
|
||||
|
||||
@@ -1283,7 +1283,7 @@ int tsc2007_register(FAR struct i2c_master_s *dev,
|
||||
/* Register the device as an input device */
|
||||
|
||||
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, minor);
|
||||
ivdbg("Registering %s\n", devname);
|
||||
iinfo("Registering %s\n", devname);
|
||||
|
||||
ret = register_driver(devname, &tsc2007_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user