Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()

This commit is contained in:
Gregory Nutt
2016-06-11 15:50:49 -06:00
parent e99301d7c2
commit a1469a3e95
1091 changed files with 5971 additions and 5966 deletions
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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"
}
+4 -4
View File
@@ -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;
}