mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_LCD
|
||||
# define lcddbg(format, ...) vdbg(format, ##__VA_ARGS__)
|
||||
# define lcddbg(format, ...) info(format, ##__VA_ARGS__)
|
||||
#else
|
||||
# define lcddbg(x...)
|
||||
#endif
|
||||
@@ -294,7 +294,7 @@ static int sim_getvideoinfo(FAR struct lcd_dev_s *dev,
|
||||
FAR struct fb_videoinfo_s *vinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && vinfo);
|
||||
gvdbg("fmt: %d xres: %d yres: %d nplanes: %d\n",
|
||||
ginfo("fmt: %d xres: %d yres: %d nplanes: %d\n",
|
||||
g_videoinfo.fmt, g_videoinfo.xres, g_videoinfo.yres, g_videoinfo.nplanes);
|
||||
memcpy(vinfo, &g_videoinfo, sizeof(struct fb_videoinfo_s));
|
||||
return OK;
|
||||
@@ -312,7 +312,7 @@ static int sim_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
|
||||
FAR struct lcd_planeinfo_s *pinfo)
|
||||
{
|
||||
DEBUGASSERT(dev && pinfo && planeno == 0);
|
||||
gvdbg("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
ginfo("planeno: %d bpp: %d\n", planeno, g_planeinfo.bpp);
|
||||
memcpy(pinfo, &g_planeinfo, sizeof(struct lcd_planeinfo_s));
|
||||
return OK;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ static int sim_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
|
||||
|
||||
static int sim_getpower(struct lcd_dev_s *dev)
|
||||
{
|
||||
gvdbg("power: %d\n", 0);
|
||||
ginfo("power: %d\n", 0);
|
||||
return g_lcddev.power;
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ static int sim_getpower(struct lcd_dev_s *dev)
|
||||
|
||||
static int sim_setpower(struct lcd_dev_s *dev, int power)
|
||||
{
|
||||
gvdbg("power: %d\n", power);
|
||||
ginfo("power: %d\n", power);
|
||||
DEBUGASSERT(power <= CONFIG_LCD_MAXPOWER);
|
||||
|
||||
/* Set new power level */
|
||||
@@ -363,7 +363,7 @@ static int sim_setpower(struct lcd_dev_s *dev, int power)
|
||||
|
||||
static int sim_getcontrast(struct lcd_dev_s *dev)
|
||||
{
|
||||
gvdbg("Not implemented\n");
|
||||
ginfo("Not implemented\n");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -377,7 +377,7 @@ static int sim_getcontrast(struct lcd_dev_s *dev)
|
||||
|
||||
static int sim_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
|
||||
{
|
||||
gvdbg("contrast: %d\n", contrast);
|
||||
ginfo("contrast: %d\n", contrast);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ static int sim_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
|
||||
|
||||
int board_lcd_initialize(void)
|
||||
{
|
||||
gvdbg("Initializing\n");
|
||||
ginfo("Initializing\n");
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ void netdriver_loop(void)
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (eth->type == HTONS(ETHTYPE_IP) && is_ours)
|
||||
{
|
||||
nllvdbg("IPv4 frame\n");
|
||||
nllinfo("IPv4 frame\n");
|
||||
|
||||
/* Handle ARP on input then give the IPv4 packet to the network
|
||||
* layer
|
||||
@@ -254,7 +254,7 @@ void netdriver_loop(void)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (eth->type == HTONS(ETHTYPE_IP6) && is_ours)
|
||||
{
|
||||
nllvdbg("Iv6 frame\n");
|
||||
nllinfo("Iv6 frame\n");
|
||||
|
||||
/* Give the IPv6 packet to the network layer */
|
||||
|
||||
|
||||
@@ -71,13 +71,13 @@
|
||||
#ifdef CONFIG_DEBUG_SPI
|
||||
# define spidbg lldbg
|
||||
# ifdef CONFIG_DEBUG_INFO
|
||||
# define spivdbg lldbg
|
||||
# define spiinfo lldbg
|
||||
# else
|
||||
# define spivdbg(x...)
|
||||
# define spiinfo(x...)
|
||||
# endif
|
||||
#else
|
||||
# define spidbg(x...)
|
||||
# define spivdbg(x...)
|
||||
# define spiinfo(x...)
|
||||
#endif
|
||||
|
||||
/* Define the FLASH SIZE in bytes */
|
||||
@@ -479,7 +479,7 @@ static uint16_t spiflash_send(FAR struct spi_dev_s *dev, uint16_t wd)
|
||||
static void spiflash_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
|
||||
FAR void *rxbuffer, size_t nwords)
|
||||
{
|
||||
spivdbg("txbuffer=%p rxbuffer=%p nwords=%d\n", txbuffer, rxbuffer, nwords);
|
||||
spiinfo("txbuffer=%p rxbuffer=%p nwords=%d\n", txbuffer, rxbuffer, nwords);
|
||||
|
||||
/* 8-bit mode */
|
||||
|
||||
@@ -536,7 +536,7 @@ static void spiflash_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffe
|
||||
#ifndef CONFIG_SPI_EXCHANGE
|
||||
static void spiflash_sndblock(FAR struct spi_dev_s *dev, FAR const void *txbuffer, size_t nwords)
|
||||
{
|
||||
spivdbg("txbuffer=%p nwords=%d\n", txbuffer, nwords);
|
||||
spiinfo("txbuffer=%p nwords=%d\n", txbuffer, nwords);
|
||||
return spiflash_exchange(dev, txbuffer, NULL, nwords);
|
||||
}
|
||||
#endif
|
||||
@@ -565,7 +565,7 @@ static void spiflash_sndblock(FAR struct spi_dev_s *dev, FAR const void *txbuffe
|
||||
static void spiflash_recvblock(FAR struct spi_dev_s *dev, FAR void *rxbuffer,
|
||||
size_t nwords)
|
||||
{
|
||||
spivdbg("rxbuffer=%p nwords=%d\n", rxbuffer, nwords);
|
||||
spiinfo("rxbuffer=%p nwords=%d\n", rxbuffer, nwords);
|
||||
return spiflash_exchange(dev, NULL, rxbuffer, nwords);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -194,7 +194,7 @@ static void up_notify(FAR struct up_dev_s *priv)
|
||||
* that the read data is available.
|
||||
*/
|
||||
|
||||
ivdbg("contact=%d nwaiters=%d\n", priv->sample.contact, priv->nwaiters);
|
||||
iinfo("contact=%d nwaiters=%d\n", priv->sample.contact, priv->nwaiters);
|
||||
if (priv->nwaiters > 0)
|
||||
{
|
||||
/* After posting this semaphore, we need to exit because the touchscreen
|
||||
@@ -217,7 +217,7 @@ static void up_notify(FAR struct up_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);
|
||||
}
|
||||
}
|
||||
@@ -235,7 +235,7 @@ static int up_sample(FAR struct up_dev_s *priv,
|
||||
|
||||
/* Is there new touchscreen sample data available? */
|
||||
|
||||
ivdbg("penchange=%d contact=%d id=%d\n",
|
||||
iinfo("penchange=%d contact=%d id=%d\n",
|
||||
priv->penchange, sample->contact, priv->id);
|
||||
|
||||
if (priv->penchange)
|
||||
@@ -263,7 +263,7 @@ static int up_sample(FAR struct up_dev_s *priv,
|
||||
}
|
||||
|
||||
priv->penchange = false;
|
||||
ivdbg("penchange=%d contact=%d id=%d\n",
|
||||
iinfo("penchange=%d contact=%d id=%d\n",
|
||||
priv->penchange, priv->sample.contact, priv->id);
|
||||
|
||||
ret = OK;
|
||||
@@ -308,11 +308,11 @@ static int up_waitsample(FAR struct up_dev_s *priv,
|
||||
{
|
||||
/* Wait for a change in the touchscreen state */
|
||||
|
||||
ivdbg("Waiting...\n");
|
||||
iinfo("Waiting...\n");
|
||||
priv->nwaiters++;
|
||||
ret = sem_wait(&priv->waitsem);
|
||||
priv->nwaiters--;
|
||||
ivdbg("Awakened...\n");
|
||||
iinfo("Awakened...\n");
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -357,7 +357,7 @@ errout:
|
||||
|
||||
static int up_open(FAR struct file *filep)
|
||||
{
|
||||
ivdbg("Opening...\n");
|
||||
iinfo("Opening...\n");
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ static int up_open(FAR struct file *filep)
|
||||
|
||||
static int up_close(FAR struct file *filep)
|
||||
{
|
||||
ivdbg("Closing...\n");
|
||||
iinfo("Closing...\n");
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -383,7 +383,7 @@ static ssize_t up_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
||||
struct up_sample_s sample;
|
||||
int ret;
|
||||
|
||||
ivdbg("len=%d\n", len);
|
||||
iinfo("len=%d\n", len);
|
||||
|
||||
DEBUGASSERT(filep);
|
||||
inode = filep->f_inode;
|
||||
@@ -480,7 +480,7 @@ static ssize_t up_read(FAR struct file *filep, FAR char *buffer, size_t len)
|
||||
ret = SIZEOF_TOUCH_SAMPLE_S(1);
|
||||
|
||||
errout:
|
||||
ivdbg("Returning %d\n", ret);
|
||||
iinfo("Returning %d\n", ret);
|
||||
sem_post(&priv->devsem);
|
||||
return ret;
|
||||
}
|
||||
@@ -495,7 +495,7 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct up_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;
|
||||
|
||||
@@ -539,7 +539,7 @@ static int up_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;
|
||||
|
||||
@@ -648,7 +648,7 @@ int board_tsc_setup(int minor)
|
||||
char devname[DEV_NAMELEN];
|
||||
int ret;
|
||||
|
||||
ivdbg("minor: %d\n", minor);
|
||||
iinfo("minor: %d\n", minor);
|
||||
|
||||
/* Debug-only sanity checks */
|
||||
|
||||
@@ -665,7 +665,7 @@ int board_tsc_setup(int minor)
|
||||
/* 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, &up_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
@@ -732,7 +732,7 @@ void board_tsc_teardown(void)
|
||||
/* Un-register the device */
|
||||
|
||||
(void)snprintf(devname, DEV_NAMELEN, DEV_FORMAT, priv->minor);
|
||||
ivdbg("Un-registering %s\n", devname);
|
||||
iinfo("Un-registering %s\n", devname);
|
||||
|
||||
ret = unregister_driver(devname);
|
||||
if (ret < 0)
|
||||
@@ -755,8 +755,8 @@ int up_buttonevent(int x, int y, int buttons)
|
||||
FAR struct up_dev_s *priv = (FAR struct up_dev_s *)&g_simtouchscreen;
|
||||
bool pendown; /* true: pen is down */
|
||||
|
||||
ivdbg("x=%d y=%d buttons=%02x\n", x, y, buttons);
|
||||
ivdbg("contact=%d nwaiters=%d\n", priv->sample.contact, priv->nwaiters);
|
||||
iinfo("x=%d y=%d buttons=%02x\n", x, y, buttons);
|
||||
iinfo("contact=%d nwaiters=%d\n", priv->sample.contact, priv->nwaiters);
|
||||
|
||||
/* Any button press will count as pendown. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user