mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
This commit is contained in:
@@ -100,10 +100,10 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
# define leddbg llerr
|
||||
# define lederr llerr
|
||||
# define ledinfo llinfo
|
||||
#else
|
||||
# define leddbg(x...)
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
|
||||
@@ -259,7 +259,7 @@ int sam_sdinitialize(int minor)
|
||||
spi = sam_mmcsd_spiinitialize();
|
||||
if (!spi)
|
||||
{
|
||||
fdbg("Failed to bit bang SPI for the MMC/SD slot\n");
|
||||
ferr("Failed to bit bang SPI for the MMC/SD slot\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ int sam_sdinitialize(int minor)
|
||||
ret = mmcsd_spislotinitialize(minor, SAM34_MMCSDSLOTNO, spi);
|
||||
if (ret < 0)
|
||||
{
|
||||
fdbg("Failed to bind bit bang SPI device to MMC/SD slot %d: %d\n",
|
||||
ferr("Failed to bind bit bang SPI device to MMC/SD slot %d: %d\n",
|
||||
SAM34_MMCSDSLOTNO, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ int board_tsc_setup(int minor)
|
||||
static bool initialized = false;
|
||||
int ret;
|
||||
|
||||
idbg("minor %d\n", minor);
|
||||
ierr("minor %d\n", minor);
|
||||
DEBUGASSERT(minor == 0);
|
||||
|
||||
/* Have we already initialized? Since we never uninitialize we must prevent
|
||||
@@ -383,7 +383,7 @@ int board_tsc_setup(int minor)
|
||||
dev = sam_tsc_spiinitialize();
|
||||
if (!dev)
|
||||
{
|
||||
idbg("Failed to initialize bit bang SPI\n");
|
||||
ierr("Failed to initialize bit bang SPI\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -392,7 +392,7 @@ int board_tsc_setup(int minor)
|
||||
ret = ads7843e_register(dev, &g_tscinfo, CONFIG_ADS7843E_DEVMINOR);
|
||||
if (ret < 0)
|
||||
{
|
||||
idbg("Failed to register touchscreen device\n");
|
||||
ierr("Failed to register touchscreen device\n");
|
||||
/* up_spiuninitialize(dev); */
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -60,10 +60,10 @@
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG_LEDS
|
||||
# define leddbg llerr
|
||||
# define lederr llerr
|
||||
# define ledinfo llinfo
|
||||
#else
|
||||
# define leddbg(x...)
|
||||
# define lederr(x...)
|
||||
# define ledinfo(x...)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user