mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#undef SPI_VERBOSE /* Define to enable verbose debug */
|
||||
|
||||
#ifdef SPI_DEBUG
|
||||
# define spidbg llerr
|
||||
# define spierr llerr
|
||||
# ifdef SPI_VERBOSE
|
||||
# define spiinfo llerr
|
||||
# else
|
||||
@@ -73,7 +73,7 @@
|
||||
# endif
|
||||
#else
|
||||
# undef SPI_VERBOSE
|
||||
# define spidbg(x...)
|
||||
# define spierr(x...)
|
||||
# define spiinfo(x...)
|
||||
#endif
|
||||
|
||||
@@ -127,7 +127,7 @@ void weak_function lpc31_spidev_intialize(void)
|
||||
|
||||
void lpc31_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
||||
{
|
||||
spidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||
spierr("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||
#warning "Missing logic"
|
||||
}
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ int lpc31_usbhost_initialize(void)
|
||||
ret = usbhost_cdcacm_initialize();
|
||||
if (ret != OK)
|
||||
{
|
||||
udbg("ERROR: Failed to register the CDC/ACM serial class\n");
|
||||
uerr("ERROR: Failed to register the CDC/ACM serial class\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -216,7 +216,7 @@ int lpc31_usbhost_initialize(void)
|
||||
ret = usbhost_kbdinit();
|
||||
if (ret != OK)
|
||||
{
|
||||
udbg("ERROR: Failed to register the KBD class\n");
|
||||
uerr("ERROR: Failed to register the KBD class\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -225,7 +225,7 @@ int lpc31_usbhost_initialize(void)
|
||||
g_ehciconn = lpc31_ehci_initialize(0);
|
||||
if (!g_ehciconn)
|
||||
{
|
||||
udbg("ERROR: lpc31_ehci_initialize failed\n");
|
||||
uerr("ERROR: lpc31_ehci_initialize failed\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ int lpc31_usbhost_initialize(void)
|
||||
(main_t)ehci_waiter, (FAR char * const *)NULL);
|
||||
if (pid < 0)
|
||||
{
|
||||
udbg("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user