Replace all occurrences of vdbg with vinfo

This commit is contained in:
Gregory Nutt
2016-06-11 11:59:51 -06:00
parent 3a74a438d9
commit fc3540cffe
845 changed files with 5817 additions and 5817 deletions
+10 -10
View File
@@ -91,13 +91,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
/****************************************************************************
@@ -193,7 +193,7 @@ static int spi_lock(FAR struct spi_dev_s *dev, bool lock)
{
FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev;
spivdbg("lock=%d\n", lock);
spiinfo("lock=%d\n", lock);
if (lock)
{
/* Take the semaphore (perhaps waiting) */
@@ -236,7 +236,7 @@ static void spi_select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
{
FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev;
spivdbg("devid=%d selected=%d\n", devid, selected);
spiinfo("devid=%d selected=%d\n", devid, selected);
DEBUGASSERT(priv && priv->low->select);
priv->low->select(priv, devid, selected);
}
@@ -263,7 +263,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency)
DEBUGASSERT(priv && priv->low->setfrequency);
actual = priv->low->setfrequency(priv, frequency);
spivdbg("frequency=%d holdtime=%d actual=%d\n",
spiinfo("frequency=%d holdtime=%d actual=%d\n",
frequency, priv->holdtime, actual);
return actual;
}
@@ -289,7 +289,7 @@ static void spi_setmode(FAR struct spi_dev_s *dev, enum spi_mode_e mode)
DEBUGASSERT(priv && priv->low->setmode);
priv->low->setmode(priv, mode);
spivdbg("mode=%d exchange=%p\n", mode, priv->exchange);
spiinfo("mode=%d exchange=%p\n", mode, priv->exchange);
}
/****************************************************************************
@@ -312,11 +312,11 @@ static void spi_setbits(FAR struct spi_dev_s *dev, int nbits)
#ifdef CONFIG_SPI_BITBANG_VARWIDTH
FAR struct spi_bitbang_s *priv = (FAR struct spi_bitbang_s *)dev;
spivdbg("nbits=%d\n", nbits);
spiinfo("nbits=%d\n", nbits);
DEBUGASSERT(priv && nbits > 0 && nbits <= 16);
priv->nbits = nbits;
#else
spivdbg("nbits=%d\n", nbits);
spiinfo("nbits=%d\n", nbits);
DEBUGASSERT(nbits == 8);
#endif
}
@@ -376,7 +376,7 @@ static void spi_exchange(FAR struct spi_dev_s *dev,
uint16_t dataout;
uint16_t datain;
spivdbg("txbuffer=%p rxbuffer=%p nwords=%d\n", txbuffer, rxbuffer, nwords);
spiinfo("txbuffer=%p rxbuffer=%p nwords=%d\n", txbuffer, rxbuffer, nwords);
DEBUGASSERT(priv && priv->low && priv->low->exchange);
/* If there is no data source, send 0xff */