Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().

This commit is contained in:
Gregory Nutt
2016-06-20 12:44:38 -06:00
parent 43eb04bb8f
commit 2a751068e6
93 changed files with 310 additions and 551 deletions
+1 -1
View File
@@ -1192,7 +1192,7 @@ static int uart_interrupt(struct uart_dev_s *dev)
default: default:
{ {
_llerr("ERROR: Unexpected IIR: %02x\n", status); _err("ERROR: Unexpected IIR: %02x\n", status);
break; break;
} }
} }
+1 -1
View File
@@ -2241,7 +2241,7 @@ void up_netinitialize(void)
{ {
/* We could not attach the ISR to the ISR */ /* We could not attach the ISR to the ISR */
nllerr("ERROR: irq_attach() failed\n"); nerr("ERROR: irq_attach() failed\n");
return; return;
} }
+2 -2
View File
@@ -518,7 +518,7 @@ static int efm32_interrupt(struct uart_dev_s *dev)
* FERR - Framing Error Interrupt Enable * FERR - Framing Error Interrupt Enable
*/ */
_llerr("RX ERROR: %08x\n", intflags); _err("RX ERROR: %08x\n", intflags);
} }
/* Check for transmit errors */ /* Check for transmit errors */
@@ -527,7 +527,7 @@ static int efm32_interrupt(struct uart_dev_s *dev)
{ {
/* TXOF - TX Overflow Interrupt Enable */ /* TXOF - TX Overflow Interrupt Enable */
_llerr("RX ERROR: %08x\n", intflags); _err("RX ERROR: %08x\n", intflags);
} }
#endif #endif
+2 -2
View File
@@ -780,7 +780,7 @@ static int efm32_rxinterrupt(struct uart_dev_s *dev)
* FERR - Framing Error Interrupt Enable * FERR - Framing Error Interrupt Enable
*/ */
_llerr("RX ERROR: %08x\n", intflags); _err("RX ERROR: %08x\n", intflags);
} }
#endif #endif
@@ -863,7 +863,7 @@ static int efm32_txinterrupt(struct uart_dev_s *dev)
{ {
/* TXOF - TX Overflow Interrupt Enable */ /* TXOF - TX Overflow Interrupt Enable */
_llerr("RX ERROR: %08x\n", intflags); _err("RX ERROR: %08x\n", intflags);
} }
#endif #endif
+7 -7
View File
@@ -810,7 +810,7 @@ static void lpc17_dmacallback(DMA_HANDLE handle, void *arg, int status)
if (status < 0) if (status < 0)
{ {
dmallerr("ERROR: DMA error %d, remaining: %d\n", status, priv->remaining); dmaerr("ERROR: DMA error %d, remaining: %d\n", status, priv->remaining);
result = SDIOWAIT_ERROR; result = SDIOWAIT_ERROR;
} }
else else
@@ -1077,7 +1077,7 @@ static void lpc17_eventtimeout(int argc, uint32_t arg)
/* Yes.. wake up any waiting threads */ /* Yes.. wake up any waiting threads */
lpc17_endwait(priv, SDIOWAIT_TIMEOUT); lpc17_endwait(priv, SDIOWAIT_TIMEOUT);
mcllerr("ERROR: Timeout: remaining: %d\n", priv->remaining); mcerr("ERROR: Timeout: remaining: %d\n", priv->remaining);
} }
} }
@@ -1294,7 +1294,7 @@ static int lpc17_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining); mcerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining);
lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1304,7 +1304,7 @@ static int lpc17_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Data timeout, remaining: %d\n", priv->remaining); mcerr("ERROR: Data timeout, remaining: %d\n", priv->remaining);
lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_TIMEOUT); lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_TIMEOUT);
} }
@@ -1314,7 +1314,7 @@ static int lpc17_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: RX FIFO overrun, remaining: %d\n", priv->remaining); mcerr("ERROR: RX FIFO overrun, remaining: %d\n", priv->remaining);
lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1324,7 +1324,7 @@ static int lpc17_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: TX FIFO underrun, remaining: %d\n", priv->remaining); mcerr("ERROR: TX FIFO underrun, remaining: %d\n", priv->remaining);
lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1334,7 +1334,7 @@ static int lpc17_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Start bit, remaining: %d\n", priv->remaining); mcerr("ERROR: Start bit, remaining: %d\n", priv->remaining);
lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); lpc17_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
} }
+4 -4
View File
@@ -1834,9 +1834,9 @@ static int lpc17_usbinterrupt(int irq, void *context)
{ {
/* The transfer failed for some reason... dump some diagnostic info. */ /* The transfer failed for some reason... dump some diagnostic info. */
ullerr("ERROR: ED xfrtype:%d TD CTRL:%08x/CC:%d RHPORTST1:%08x\n", uerr("ERROR: ED xfrtype:%d TD CTRL:%08x/CC:%d RHPORTST1:%08x\n",
ed->xfrtype, td->hw.ctrl, xfrinfo->tdstatus, ed->xfrtype, td->hw.ctrl, xfrinfo->tdstatus,
lpc17_getreg(LPC17_USBHOST_RHPORTST1)); lpc17_getreg(LPC17_USBHOST_RHPORTST1));
} }
#endif #endif
@@ -1898,7 +1898,7 @@ static int lpc17_usbinterrupt(int irq, void *context)
#ifdef CONFIG_DEBUG_USB #ifdef CONFIG_DEBUG_USB
if ((pending & LPC17_DEBUG_INTS) != 0) if ((pending & LPC17_DEBUG_INTS) != 0)
{ {
ullerr("ERROR: Unhandled interrupts INTST:%08x\n", intst); uerr("ERROR: Unhandled interrupts INTST:%08x\n", intst);
} }
#endif #endif
+1 -1
View File
@@ -873,7 +873,7 @@ static int up_interrupt(int irq, void *context)
default: default:
{ {
_llerr("ERROR: Unexpected IIR: %02x\n", status); _err("ERROR: Unexpected IIR: %02x\n", status);
break; break;
} }
} }
+3 -3
View File
@@ -244,7 +244,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_oneshot_initialize failed\n"); tmrerr("ERROR: sam_oneshot_initialize failed\n");
PANIC(); PANIC();
} }
@@ -256,7 +256,7 @@ void up_timer_initialize(void)
ret = sam_oneshot_max_delay(&g_tickless.oneshot, &max_delay); ret = sam_oneshot_max_delay(&g_tickless.oneshot, &max_delay);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_oneshot_max_delay failed\n"); tmrerr("ERROR: sam_oneshot_max_delay failed\n");
PANIC(); PANIC();
} }
@@ -280,7 +280,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_freerun_initialize failed\n"); tmrerr("ERROR: sam_freerun_initialize failed\n");
PANIC(); PANIC();
} }
+11 -11
View File
@@ -760,7 +760,7 @@ static int sam_transmit(struct sam_emac_s *priv)
if (dev->d_len > EMAC_TX_UNITSIZE) if (dev->d_len > EMAC_TX_UNITSIZE)
{ {
nllerr("ERROR: Packet too big: %d\n", dev->d_len); nerr("ERROR: Packet too big: %d\n", dev->d_len);
return -EINVAL; return -EINVAL;
} }
@@ -772,7 +772,7 @@ static int sam_transmit(struct sam_emac_s *priv)
if (sam_txfree(priv) < 1) if (sam_txfree(priv) < 1)
{ {
nllerr("ERROR: No free TX descriptors\n"); nerr("ERROR: No free TX descriptors\n");
return -EBUSY; return -EBUSY;
} }
@@ -1060,7 +1060,7 @@ static int sam_recvframe(struct sam_emac_s *priv)
{ {
if (rxndx == priv->rxndx) if (rxndx == priv->rxndx)
{ {
nllerr("ERROR: No EOF (Invalid of buffers too small)\n"); nerr("ERROR: No EOF (Invalid of buffers too small)\n");
do do
{ {
/* Give ownership back to the EMAC */ /* Give ownership back to the EMAC */
@@ -1136,7 +1136,7 @@ static int sam_recvframe(struct sam_emac_s *priv)
if (pktlen < dev->d_len) if (pktlen < dev->d_len)
{ {
nllerr("ERROR: Buffer size %d; frame size %d\n", dev->d_len, pktlen); nerr("ERROR: Buffer size %d; frame size %d\n", dev->d_len, pktlen);
return -E2BIG; return -E2BIG;
} }
@@ -1468,7 +1468,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
clrbits = EMAC_TSR_RLE | sam_txinuse(priv); clrbits = EMAC_TSR_RLE | sam_txinuse(priv);
sam_txreset(priv); sam_txreset(priv);
nllerr("ERROR: Retry Limit Exceeded TSR: %08x\n", tsr); nerr("ERROR: Retry Limit Exceeded TSR: %08x\n", tsr);
regval = sam_getreg(priv, SAM_EMAC_NCR); regval = sam_getreg(priv, SAM_EMAC_NCR);
regval |= EMAC_NCR_TXEN; regval |= EMAC_NCR_TXEN;
@@ -1479,7 +1479,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
if ((tsr & EMAC_TSR_COL) != 0) if ((tsr & EMAC_TSR_COL) != 0)
{ {
nllerr("ERROR: Collision occurred TSR: %08x\n", tsr); nerr("ERROR: Collision occurred TSR: %08x\n", tsr);
clrbits |= EMAC_TSR_COL; clrbits |= EMAC_TSR_COL;
} }
@@ -1487,7 +1487,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
if ((tsr & EMAC_TSR_TFC) != 0) if ((tsr & EMAC_TSR_TFC) != 0)
{ {
nllerr("ERROR: Transmit Frame Corruption due to AHB error: %08x\n", tsr); nerr("ERROR: Transmit Frame Corruption due to AHB error: %08x\n", tsr);
clrbits |= EMAC_TSR_TFC; clrbits |= EMAC_TSR_TFC;
} }
@@ -1502,7 +1502,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
if ((tsr & EMAC_TSR_UND) != 0) if ((tsr & EMAC_TSR_UND) != 0)
{ {
nllerr("ERROR: Transmit Underrun TSR: %08x\n", tsr); nerr("ERROR: Transmit Underrun TSR: %08x\n", tsr);
clrbits |= EMAC_TSR_UND; clrbits |= EMAC_TSR_UND;
} }
@@ -1539,7 +1539,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
if ((rsr & EMAC_RSR_RXOVR) != 0) if ((rsr & EMAC_RSR_RXOVR) != 0)
{ {
nllerr("ERROR: Receiver overrun RSR: %08x\n", rsr); nerr("ERROR: Receiver overrun RSR: %08x\n", rsr);
clrbits |= EMAC_RSR_RXOVR; clrbits |= EMAC_RSR_RXOVR;
} }
@@ -1556,7 +1556,7 @@ static inline void sam_interrupt_process(FAR struct sam_emac_s *priv)
if ((rsr & EMAC_RSR_BNA) != 0) if ((rsr & EMAC_RSR_BNA) != 0)
{ {
nllerr("ERROR: Buffer not available RSR: %08x\n", rsr); nerr("ERROR: Buffer not available RSR: %08x\n", rsr);
clrbits |= EMAC_RSR_BNA; clrbits |= EMAC_RSR_BNA;
} }
@@ -1725,7 +1725,7 @@ static int sam_emac_interrupt(int irq, void *context)
static inline void sam_txtimeout_process(FAR struct sam_emac_s *priv) static inline void sam_txtimeout_process(FAR struct sam_emac_s *priv)
{ {
nllerr("ERROR: Timeout!\n"); nerr("ERROR: Timeout!\n");
/* Then reset the hardware. Just take the interface down, then back /* Then reset the hardware. Just take the interface down, then back
* up again. * up again.
+4 -4
View File
@@ -1083,7 +1083,7 @@ static void sam_eventtimeout(int argc, uint32_t arg)
/* Yes.. wake up any waiting threads */ /* Yes.. wake up any waiting threads */
sam_endwait(priv, SDIOWAIT_TIMEOUT); sam_endwait(priv, SDIOWAIT_TIMEOUT);
mcllerr("ERROR: Timeout\n"); mcerr("ERROR: Timeout\n");
} }
} }
@@ -1278,7 +1278,7 @@ static int sam_interrupt(int irq, void *context)
{ {
/* Yes.. Was it some kind of timeout error? */ /* Yes.. Was it some kind of timeout error? */
mcllerr("ERROR: enabled: %08x pending: %08x\n", enabled, pending); mcerr("ERROR: enabled: %08x pending: %08x\n", enabled, pending);
if ((pending & HSMCI_DATA_TIMEOUT_ERRORS) != 0) if ((pending & HSMCI_DATA_TIMEOUT_ERRORS) != 0)
{ {
/* Yes.. Terminate with a timeout. */ /* Yes.. Terminate with a timeout. */
@@ -1320,8 +1320,8 @@ static int sam_interrupt(int irq, void *context)
{ {
/* Yes.. Was the error some kind of timeout? */ /* Yes.. Was the error some kind of timeout? */
mcllerr("ERROR: events: %08x SR: %08x\n", mcerr("ERROR: events: %08x SR: %08x\n",
priv->cmdrmask, enabled); priv->cmdrmask, enabled);
if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0) if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0)
{ {
+1 -1
View File
@@ -274,7 +274,7 @@ static int rtc_interrupt(int irq, void *context)
ret = work_queue(LPWORK, &g_alarmwork, rtc_worker, NULL, 0); ret = work_queue(LPWORK, &g_alarmwork, rtc_worker, NULL, 0);
if (ret < 0) if (ret < 0)
{ {
rtcllerr("ERROR: work_queue failed: %d\n", ret); rtcerr("ERROR: work_queue failed: %d\n", ret);
} }
/* Disable any further alarm interrupts */ /* Disable any further alarm interrupts */
+2 -2
View File
@@ -459,7 +459,7 @@ static int twi_interrupt(struct twi_dev_s *priv)
{ {
/* Wake up the thread with an I/O error indication */ /* Wake up the thread with an I/O error indication */
i2cllerr("ERROR: TWI%d pending: %08x\n", priv->twi, pending); i2cerr("ERROR: TWI%d pending: %08x\n", priv->twi, pending);
twi_wakeup(priv, -EIO); twi_wakeup(priv, -EIO);
} }
@@ -582,7 +582,7 @@ static void twi_timeout(int argc, uint32_t arg, ...)
{ {
struct twi_dev_s *priv = (struct twi_dev_s *)arg; struct twi_dev_s *priv = (struct twi_dev_s *)arg;
i2cllerr("ERROR: TWI%d Timeout!\n", priv->twi); i2cerr("ERROR: TWI%d Timeout!\n", priv->twi);
twi_wakeup(priv, -ETIMEDOUT); twi_wakeup(priv, -ETIMEDOUT);
} }
+2 -2
View File
@@ -755,7 +755,7 @@ static void sam_adc_dmacallback(DMA_HANDLE handle, void *arg, int result)
ret = work_queue(HPWORK, &priv->work, sam_adc_dmadone, priv, 0); ret = work_queue(HPWORK, &priv->work, sam_adc_dmadone, priv, 0);
if (ret != 0) if (ret != 0)
{ {
allerr("ERROR: Failed to queue work: %d\n", ret); aerr("ERROR: Failed to queue work: %d\n", ret);
} }
} }
@@ -961,7 +961,7 @@ static int sam_adc_interrupt(int irq, void *context)
ret = work_queue(HPWORK, &priv->work, sam_adc_endconversion, priv, 0); ret = work_queue(HPWORK, &priv->work, sam_adc_endconversion, priv, 0);
if (ret != 0) if (ret != 0)
{ {
allerr("ERROR: Failed to queue work: %d\n", ret); aerr("ERROR: Failed to queue work: %d\n", ret);
} }
pending &= ~ADC_INT_EOCALL; pending &= ~ADC_INT_EOCALL;
+1 -1
View File
@@ -1818,7 +1818,7 @@ static int sam_dmac_interrupt(struct sam_dmac_s *dmac)
{ {
/* Yes... Terminate the transfer with an error? */ /* Yes... Terminate the transfer with an error? */
dmallerr("ERROR: DMA failed: %08x\n", regval); dmaerr("ERROR: DMA failed: %08x\n", regval);
sam_dmaterminate(dmach, -EIO); sam_dmaterminate(dmach, -EIO);
} }
+4 -4
View File
@@ -88,7 +88,7 @@ static inline void up_gmac_initialize(void)
ret = sam_gmac_initialize(); ret = sam_gmac_initialize();
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: sam_gmac_initialize failed: %d\n", ret); nerr("ERROR: sam_gmac_initialize failed: %d\n", ret);
} }
} }
#else #else
@@ -119,7 +119,7 @@ static inline void up_emac_initialize(void)
ret = sam_emac_initialize(); ret = sam_emac_initialize();
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: up_emac_initialize failed: %d\n", ret); nerr("ERROR: up_emac_initialize failed: %d\n", ret);
} }
} }
#elif defined(CONFIG_SAMA5_EMACB) #elif defined(CONFIG_SAMA5_EMACB)
@@ -133,7 +133,7 @@ static inline void up_emac_initialize(void)
ret = sam_emac_initialize(EMAC0_INTF); ret = sam_emac_initialize(EMAC0_INTF);
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: up_emac_initialize(EMAC0) failed: %d\n", ret); nerr("ERROR: up_emac_initialize(EMAC0) failed: %d\n", ret);
} }
#endif #endif
@@ -143,7 +143,7 @@ static inline void up_emac_initialize(void)
ret = sam_emac_initialize(EMAC1_INTF); ret = sam_emac_initialize(EMAC1_INTF);
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: up_emac_initialize(EMAC1) failed: %d\n", ret); nerr("ERROR: up_emac_initialize(EMAC1) failed: %d\n", ret);
} }
#endif #endif
} }
+15 -15
View File
@@ -1241,7 +1241,7 @@ static void sam_dmacallback(DMA_HANDLE handle, void *arg, int result)
if (result < 0) if (result < 0)
{ {
wkupevent = (result == -ETIMEDOUT ? SDIOWAIT_TIMEOUT : SDIOWAIT_ERROR); wkupevent = (result == -ETIMEDOUT ? SDIOWAIT_TIMEOUT : SDIOWAIT_ERROR);
fllerr("ERROR: DMA failed: result=%d wkupevent=%04x\n", result, wkupevent); mcerr("ERROR: DMA failed: result=%d wkupevent=%04x\n", result, wkupevent);
/* sam_endtransfer will terminate the transfer and wait up the waiting /* sam_endtransfer will terminate the transfer and wait up the waiting
* client in this case. * client in this case.
@@ -1341,7 +1341,7 @@ static void sam_eventtimeout(int argc, uint32_t arg)
/* Yes.. wake up any waiting threads */ /* Yes.. wake up any waiting threads */
sam_endwait(priv, SDIOWAIT_TIMEOUT); sam_endwait(priv, SDIOWAIT_TIMEOUT);
fllerr("ERROR: Timeout\n"); mcerr("ERROR: Timeout\n");
} }
} }
@@ -1541,7 +1541,7 @@ static int sam_hsmci_interrupt(struct sam_dev_s *priv)
{ {
/* Yes.. Was it some kind of timeout error? */ /* Yes.. Was it some kind of timeout error? */
fllerr("ERROR: enabled: %08x pending: %08x\n", enabled, pending); mcerr("ERROR: enabled: %08x pending: %08x\n", enabled, pending);
if ((pending & HSMCI_DATA_TIMEOUT_ERRORS) != 0) if ((pending & HSMCI_DATA_TIMEOUT_ERRORS) != 0)
{ {
/* Yes.. Terminate with a timeout. */ /* Yes.. Terminate with a timeout. */
@@ -1613,8 +1613,8 @@ static int sam_hsmci_interrupt(struct sam_dev_s *priv)
{ {
/* Yes.. Was the error some kind of timeout? */ /* Yes.. Was the error some kind of timeout? */
fllerr("ERROR: events: %08x SR: %08x\n", mcerr("ERROR: events: %08x SR: %08x\n",
priv->cmdrmask, enabled); priv->cmdrmask, enabled);
if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0) if ((pending & HSMCI_RESPONSE_TIMEOUT_ERRORS) != 0)
{ {
@@ -2094,7 +2094,7 @@ static int sam_sendcmd(FAR struct sdio_dev_s *dev,
/* Write the fully decorated command to CMDR */ /* Write the fully decorated command to CMDR */
finfo("cmd: %08x arg: %08x regval: %08x\n", cmd, arg, regval); mcinfo("cmd: %08x arg: %08x regval: %08x\n", cmd, arg, regval);
sam_putreg(priv, regval, SAM_HSMCI_CMDR_OFFSET); sam_putreg(priv, regval, SAM_HSMCI_CMDR_OFFSET);
sam_cmdsample1(priv, SAMPLENDX_AFTER_CMDR); sam_cmdsample1(priv, SAMPLENDX_AFTER_CMDR);
return OK; return OK;
@@ -2816,7 +2816,7 @@ static void sam_callbackenable(FAR struct sdio_dev_s *dev,
{ {
struct sam_dev_s *priv = (struct sam_dev_s *)dev; struct sam_dev_s *priv = (struct sam_dev_s *)dev;
finfo("eventset: %02x\n", eventset); mcinfo("eventset: %02x\n", eventset);
DEBUGASSERT(priv != NULL); DEBUGASSERT(priv != NULL);
priv->cbevents = eventset; priv->cbevents = eventset;
@@ -2852,7 +2852,7 @@ static int sam_registercallback(FAR struct sdio_dev_s *dev,
/* Disable callbacks and register this callback and is argument */ /* Disable callbacks and register this callback and is argument */
finfo("Register %p(%p)\n", callback, arg); mcinfo("Register %p(%p)\n", callback, arg);
DEBUGASSERT(priv != NULL); DEBUGASSERT(priv != NULL);
priv->cbevents = 0; priv->cbevents = 0;
@@ -3099,8 +3099,8 @@ static void sam_callback(void *arg)
/* Is a callback registered? */ /* Is a callback registered? */
DEBUGASSERT(priv != NULL); DEBUGASSERT(priv != NULL);
finfo("Callback %p(%p) cbevents: %02x cdstatus: %02x\n", mcinfo("Callback %p(%p) cbevents: %02x cdstatus: %02x\n",
priv->callback, priv->cbarg, priv->cbevents, priv->cdstatus); priv->callback, priv->cbarg, priv->cbevents, priv->cdstatus);
flags = enter_critical_section(); flags = enter_critical_section();
if (priv->callback) if (priv->callback)
@@ -3157,7 +3157,7 @@ static void sam_callback(void *arg)
lcderr("ERROR: Failed to cancel work: %d\n", ret); lcderr("ERROR: Failed to cancel work: %d\n", ret);
} }
finfo("Queuing callback to %p(%p)\n", priv->callback, priv->cbarg); mcinfo("Queuing callback to %p(%p)\n", priv->callback, priv->cbarg);
ret = work_queue(LPWORK, &priv->cbwork, (worker_t)priv->callback, ret = work_queue(LPWORK, &priv->cbwork, (worker_t)priv->callback,
priv->cbarg, 0); priv->cbarg, 0);
if (ret < 0) if (ret < 0)
@@ -3327,8 +3327,8 @@ FAR struct sdio_dev_s *sdio_initialize(int slotno)
return NULL; return NULL;
} }
finfo("priv: %p base: %08x hsmci: %d dmac: %d pid: %d\n", mcinfo("priv: %p base: %08x hsmci: %d dmac: %d pid: %d\n",
priv, priv->base, priv->hsmci, dmac, pid); priv, priv->base, priv->hsmci, dmac, pid);
/* Initialize the HSMCI slot structure */ /* Initialize the HSMCI slot structure */
@@ -3397,7 +3397,7 @@ void sdio_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
priv->cdstatus &= ~SDIO_STATUS_PRESENT; priv->cdstatus &= ~SDIO_STATUS_PRESENT;
} }
finfo("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus); mcinfo("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
/* Perform any requested callback if the status has changed */ /* Perform any requested callback if the status has changed */
@@ -3442,7 +3442,7 @@ void sdio_wrprotect(FAR struct sdio_dev_s *dev, bool wrprotect)
priv->cdstatus &= ~SDIO_STATUS_WRPROTECTED; priv->cdstatus &= ~SDIO_STATUS_WRPROTECTED;
} }
finfo("cdstatus: %02x\n", priv->cdstatus); mcinfo("cdstatus: %02x\n", priv->cdstatus);
leave_critical_section(flags); leave_critical_section(flags);
} }
+1 -1
View File
@@ -265,7 +265,7 @@ static int rtc_interrupt(int irq, void *context)
ret = work_queue(LPWORK, &g_alarmwork, rtc_worker, NULL, 0); ret = work_queue(LPWORK, &g_alarmwork, rtc_worker, NULL, 0);
if (ret < 0) if (ret < 0)
{ {
rtcllerr("ERROR: work_queue failed: %d\n", ret); rtcerr("ERROR: work_queue failed: %d\n", ret);
} }
/* Disable any further alarm interrupts */ /* Disable any further alarm interrupts */
+3 -3
View File
@@ -256,7 +256,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_oneshot_initialize failed\n"); tmrerr("ERROR: sam_oneshot_initialize failed\n");
PANIC(); PANIC();
} }
@@ -268,7 +268,7 @@ void up_timer_initialize(void)
ret = sam_oneshot_max_delay(&g_tickless.oneshot, &max_delay); ret = sam_oneshot_max_delay(&g_tickless.oneshot, &max_delay);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_oneshot_max_delay failed\n"); tmrerr("ERROR: sam_oneshot_max_delay failed\n");
PANIC(); PANIC();
} }
@@ -292,7 +292,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_freerun_initialize failed\n"); tmrerr("ERROR: sam_freerun_initialize failed\n");
PANIC(); PANIC();
} }
+1 -1
View File
@@ -799,7 +799,7 @@ static int sam_tsd_schedule(struct sam_tsd_s *priv)
ret = work_queue(HPWORK, &priv->work, sam_tsd_bottomhalf, priv, 0); ret = work_queue(HPWORK, &priv->work, sam_tsd_bottomhalf, priv, 0);
if (ret != 0) if (ret != 0)
{ {
illerr("ERROR: Failed to queue work: %d\n", ret); ierr("ERROR: Failed to queue work: %d\n", ret);
} }
return OK; return OK;
+2 -2
View File
@@ -659,7 +659,7 @@ static int twi_interrupt(struct twi_dev_s *priv)
{ {
/* Wake up the thread with an I/O error indication */ /* Wake up the thread with an I/O error indication */
i2cllerr("ERROR: TWI%d pending: %08x\n", priv->attr->twi, pending); i2cerr("ERROR: TWI%d pending: %08x\n", priv->attr->twi, pending);
twi_wakeup(priv, -EIO); twi_wakeup(priv, -EIO);
} }
@@ -709,7 +709,7 @@ static void twi_timeout(int argc, uint32_t arg, ...)
{ {
struct twi_dev_s *priv = (struct twi_dev_s *)arg; struct twi_dev_s *priv = (struct twi_dev_s *)arg;
i2cllerr("ERROR: TWI%d Timeout!\n", priv->attr->twi); i2cerr("ERROR: TWI%d Timeout!\n", priv->attr->twi);
twi_wakeup(priv, -ETIMEDOUT); twi_wakeup(priv, -ETIMEDOUT);
} }
+2 -2
View File
@@ -1860,7 +1860,7 @@ static int sam_xdmac_interrupt(struct sam_xdmac_s *xdmac)
{ {
/* Yes... Terminate the transfer with an error? */ /* Yes... Terminate the transfer with an error? */
dmallerr("ERROR: DMA failed: %08x\n", chpending); dmaerr("ERROR: DMA failed: %08x\n", chpending);
sam_dmaterminate(xdmach, -EIO); sam_dmaterminate(xdmach, -EIO);
} }
@@ -1877,7 +1877,7 @@ static int sam_xdmac_interrupt(struct sam_xdmac_s *xdmac)
else else
{ {
dmallerr("ERROR: Unexpected interrupt: %08x\n", chpending); dmaerr("ERROR: Unexpected interrupt: %08x\n", chpending);
DEBUGPANIC(); DEBUGPANIC();
} }
+2 -2
View File
@@ -99,7 +99,7 @@ void up_netinitialize(void)
ret = sam_emac_initialize(EMAC0_INTF); ret = sam_emac_initialize(EMAC0_INTF);
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: up_emac_initialize(EMAC0) failed: %d\n", ret); nerr("ERROR: up_emac_initialize(EMAC0) failed: %d\n", ret);
} }
#endif #endif
@@ -109,7 +109,7 @@ void up_netinitialize(void)
ret = sam_emac_initialize(EMAC1_INTF); ret = sam_emac_initialize(EMAC1_INTF);
if (ret < 0) if (ret < 0)
{ {
nllerr("ERROR: up_emac_initialize(EMAC1) failed: %d\n", ret); nerr("ERROR: up_emac_initialize(EMAC1) failed: %d\n", ret);
} }
#endif #endif
#endif #endif
+2 -2
View File
@@ -265,7 +265,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_oneshot_initialize failed\n"); tmrerr("ERROR: sam_oneshot_initialize failed\n");
PANIC(); PANIC();
} }
@@ -278,7 +278,7 @@ void up_timer_initialize(void)
CONFIG_USEC_PER_TICK); CONFIG_USEC_PER_TICK);
if (ret < 0) if (ret < 0)
{ {
tmrllerr("ERROR: sam_freerun_initialize failed\n"); tmrerr("ERROR: sam_freerun_initialize failed\n");
PANIC(); PANIC();
} }
+2 -2
View File
@@ -616,7 +616,7 @@ static int twi_interrupt(struct twi_dev_s *priv)
{ {
/* Wake up the thread with an I/O error indication */ /* Wake up the thread with an I/O error indication */
i2cllerr("ERROR: TWIHS%d pending: %08x\n", priv->attr->twi, pending); i2cerr("ERROR: TWIHS%d pending: %08x\n", priv->attr->twi, pending);
twi_wakeup(priv, -EIO); twi_wakeup(priv, -EIO);
} }
@@ -739,7 +739,7 @@ static void twi_timeout(int argc, uint32_t arg, ...)
{ {
struct twi_dev_s *priv = (struct twi_dev_s *)arg; struct twi_dev_s *priv = (struct twi_dev_s *)arg;
i2cllerr("ERROR: TWIHS%d Timeout!\n", priv->attr->twi); i2cerr("ERROR: TWIHS%d Timeout!\n", priv->attr->twi);
twi_wakeup(priv, -ETIMEDOUT); twi_wakeup(priv, -ETIMEDOUT);
} }
+2 -2
View File
@@ -1542,7 +1542,7 @@ static int sam_xdmac_interrupt(int irq, void *context)
{ {
/* Yes... Terminate the transfer with an error? */ /* Yes... Terminate the transfer with an error? */
dmallerr("ERROR: DMA failed: %08x\n", chpending); dmaerr("ERROR: DMA failed: %08x\n", chpending);
sam_dmaterminate(xdmach, -EIO); sam_dmaterminate(xdmach, -EIO);
} }
@@ -1559,7 +1559,7 @@ static int sam_xdmac_interrupt(int irq, void *context)
else else
{ {
dmallerr("ERROR: Unexpected interrupt: %08x\n", chpending); dmaerr("ERROR: Unexpected interrupt: %08x\n", chpending);
DEBUGPANIC(); DEBUGPANIC();
} }
+7 -7
View File
@@ -907,7 +907,7 @@ static void stm32_dmacallback(DMA_HANDLE handle, uint8_t status, void *arg)
if ((status & DMA_STATUS_ERROR) != 0) if ((status & DMA_STATUS_ERROR) != 0)
{ {
mcllerr("ERROR: DMA error %02x, remaining: %d\n", status, priv->remaining); mcerr("ERROR: DMA error %02x, remaining: %d\n", status, priv->remaining);
result = SDIOWAIT_ERROR; result = SDIOWAIT_ERROR;
} }
else else
@@ -1172,7 +1172,7 @@ static void stm32_eventtimeout(int argc, uint32_t arg)
/* Yes.. wake up any waiting threads */ /* Yes.. wake up any waiting threads */
stm32_endwait(priv, SDIOWAIT_TIMEOUT); stm32_endwait(priv, SDIOWAIT_TIMEOUT);
mcllerr("ERROR: Timeout, remaining: %d\n", priv->remaining); mcerr("ERROR: Timeout, remaining: %d\n", priv->remaining);
} }
} }
@@ -1412,7 +1412,7 @@ static int stm32_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining); mcerr("ERROR: Data block CRC failure, remaining: %d\n", priv->remaining);
stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1422,7 +1422,7 @@ static int stm32_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Data timeout, remaining: %d\n", priv->remaining); mcerr("ERROR: Data timeout, remaining: %d\n", priv->remaining);
stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_TIMEOUT); stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_TIMEOUT);
} }
@@ -1432,7 +1432,7 @@ static int stm32_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: RX FIFO overrun, remaining: %d\n", priv->remaining); mcerr("ERROR: RX FIFO overrun, remaining: %d\n", priv->remaining);
stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1442,7 +1442,7 @@ static int stm32_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: TX FIFO underrun, remaining: %d\n", priv->remaining); mcerr("ERROR: TX FIFO underrun, remaining: %d\n", priv->remaining);
stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
@@ -1452,7 +1452,7 @@ static int stm32_interrupt(int irq, void *context)
{ {
/* Terminate the transfer with an error */ /* Terminate the transfer with an error */
mcllerr("ERROR: Start bit, remaining: %d\n", priv->remaining); mcerr("ERROR: Start bit, remaining: %d\n", priv->remaining);
stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR); stm32_endtransfer(priv, SDIOWAIT_TRANSFERDONE | SDIOWAIT_ERROR);
} }
} }
+1 -1
View File
@@ -686,7 +686,7 @@ static void tiva_adc_read(void *arg)
* and should cause a full system stop. * and should cause a full system stop.
*/ */
allerr("ERROR: Invalid ADC device number given %d\n", sse->adc); aerr("ERROR: Invalid ADC device number given %d\n", sse->adc);
PANIC(); PANIC();
return; return;
} }
+1 -1
View File
@@ -155,7 +155,7 @@ int tms570_esm_interrupt(int irq, void *context)
/* Crash -- possibly showing diagnostic debug information. */ /* Crash -- possibly showing diagnostic debug information. */
_llerr("ERROR: ESM Interrupt. PC: %08x\n", CURRENT_REGS[REG_PC]); _err("ERROR: ESM Interrupt. PC: %08x\n", CURRENT_REGS[REG_PC]);
PANIC(); PANIC();
return OK; /* To keep the compiler happy */ return OK; /* To keep the compiler happy */
} }
+2 -2
View File
@@ -321,11 +321,11 @@ unsigned int avr32_intirqno(unsigned int level)
mask <<= 1; mask <<= 1;
} }
_llerr("ERROR: Spurious interrupt: group=%d IRR=%08x\n", group, irr); _err("ERROR: Spurious interrupt: group=%d IRR=%08x\n", group, irr);
return -ENODEV; return -ENODEV;
} }
_llerr("ERROR: Bad group: %d\n", group); _err("ERROR: Bad group: %d\n", group);
return AVR32_IRQ_BADVECTOR; return AVR32_IRQ_BADVECTOR;
} }
+1 -1
View File
@@ -263,7 +263,7 @@ int up_swint0(int irq, FAR void *context)
g_current_regs[REG_R0] -= CONFIG_SYS_RESERVED; g_current_regs[REG_R0] -= CONFIG_SYS_RESERVED;
#else #else
svcllerr("ERROR: Bad SYS call: %d\n", regs[REG_A0]); svcerr("ERROR: Bad SYS call: %d\n", regs[REG_A0]);
#endif #endif
} }
break; break;
+13 -13
View File
@@ -1357,8 +1357,8 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
if ((rxdesc->rsv2 & RXDESC_RSV2_OK) == 0) if ((rxdesc->rsv2 & RXDESC_RSV2_OK) == 0)
{ {
nllerr("ERROR. rsv1: %08x rsv2: %08x\n", nerr("ERROR. rsv1: %08x rsv2: %08x\n",
rxdesc->rsv1, rxdesc->rsv2); rxdesc->rsv1, rxdesc->rsv2);
NETDEV_RXERRORS(&priv->pd_dev); NETDEV_RXERRORS(&priv->pd_dev);
pic32mx_rxreturn(rxdesc); pic32mx_rxreturn(rxdesc);
} }
@@ -1371,8 +1371,8 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
else if (priv->pd_dev.d_len > CONFIG_NET_ETH_MTU) else if (priv->pd_dev.d_len > CONFIG_NET_ETH_MTU)
{ {
nllerr("ERROR: Too big. packet length: %d rxdesc: %08x\n", nerr("ERROR: Too big. packet length: %d rxdesc: %08x\n",
priv->pd_dev.d_len, rxdesc->status); priv->pd_dev.d_len, rxdesc->status);
NETDEV_RXERRORS(&priv->pd_dev); NETDEV_RXERRORS(&priv->pd_dev);
pic32mx_rxreturn(rxdesc); pic32mx_rxreturn(rxdesc);
} }
@@ -1382,8 +1382,8 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
else if ((rxdesc->status & (RXDESC_STATUS_EOP | RXDESC_STATUS_SOP)) != else if ((rxdesc->status & (RXDESC_STATUS_EOP | RXDESC_STATUS_SOP)) !=
(RXDESC_STATUS_EOP | RXDESC_STATUS_SOP)) (RXDESC_STATUS_EOP | RXDESC_STATUS_SOP))
{ {
nllerr("ERROR: Fragment. packet length: %d rxdesc: %08x\n", nerr("ERROR: Fragment. packet length: %d rxdesc: %08x\n",
priv->pd_dev.d_len, rxdesc->status); priv->pd_dev.d_len, rxdesc->status);
NETDEV_RXFRAGMENTS(&priv->pd_dev); NETDEV_RXFRAGMENTS(&priv->pd_dev);
pic32mx_rxreturn(rxdesc); pic32mx_rxreturn(rxdesc);
} }
@@ -1522,8 +1522,8 @@ static void pic32mx_rxdone(struct pic32mx_driver_s *priv)
{ {
/* Unrecognized... drop it. */ /* Unrecognized... drop it. */
nllerr("ERROR: Unrecognized packet type dropped: %04x\n", nerr("ERROR: Unrecognized packet type dropped: %04x\n",
ntohs(BUF->type)); ntohs(BUF->type));
NETDEV_RXDROPPED(&priv->pd_dev); NETDEV_RXDROPPED(&priv->pd_dev);
} }
@@ -1685,7 +1685,7 @@ static int pic32mx_interrupt(int irq, void *context)
if ((status & ETH_INT_RXOVFLW) != 0) if ((status & ETH_INT_RXOVFLW) != 0)
{ {
nllerr("ERROR: RX Overrun. status: %08x\n", status); nerr("ERROR: RX Overrun. status: %08x\n", status);
NETDEV_RXERRORS(&priv->pd_dev); NETDEV_RXERRORS(&priv->pd_dev);
} }
@@ -1696,7 +1696,7 @@ static int pic32mx_interrupt(int irq, void *context)
if ((status & ETH_INT_RXBUFNA) != 0) if ((status & ETH_INT_RXBUFNA) != 0)
{ {
nllerr("ERROR: RX buffer descriptor overrun. status: %08x\n", status); nerr("ERROR: RX buffer descriptor overrun. status: %08x\n", status);
NETDEV_RXERRORS(&priv->pd_dev); NETDEV_RXERRORS(&priv->pd_dev);
} }
@@ -1707,7 +1707,7 @@ static int pic32mx_interrupt(int irq, void *context)
if ((status & ETH_INT_RXBUSE) != 0) if ((status & ETH_INT_RXBUSE) != 0)
{ {
nllerr("ERROR: RX BVCI bus error. status: %08x\n", status); nerr("ERROR: RX BVCI bus error. status: %08x\n", status);
NETDEV_RXERRORS(&priv->pd_dev); NETDEV_RXERRORS(&priv->pd_dev);
} }
@@ -1750,7 +1750,7 @@ static int pic32mx_interrupt(int irq, void *context)
if ((status & ETH_INT_TXABORT) != 0) if ((status & ETH_INT_TXABORT) != 0)
{ {
nllerr("ERROR: TX abort. status: %08x\n", status); nerr("ERROR: TX abort. status: %08x\n", status);
NETDEV_TXERRORS(&priv->pd_dev); NETDEV_TXERRORS(&priv->pd_dev);
} }
@@ -1761,7 +1761,7 @@ static int pic32mx_interrupt(int irq, void *context)
if ((status & ETH_INT_TXBUSE) != 0) if ((status & ETH_INT_TXBUSE) != 0)
{ {
nllerr("ERROR: TX BVCI bus error. status: %08x\n", status); nerr("ERROR: TX BVCI bus error. status: %08x\n", status);
NETDEV_TXERRORS(&priv->pd_dev); NETDEV_TXERRORS(&priv->pd_dev);
} }
+2 -2
View File
@@ -500,8 +500,8 @@ static int up_interrupt(int irq, void *context)
/* Clear the pending error interrupt */ /* Clear the pending error interrupt */
up_clrpend_irq(priv->irqe); up_clrpend_irq(priv->irqe);
_llerr("ERROR: interrupt STA: %08x\n", _err("ERROR: interrupt STA: %08x\n",
up_serialin(priv, PIC32MX_UART_STA_OFFSET)); up_serialin(priv, PIC32MX_UART_STA_OFFSET));
handled = true; handled = true;
} }
#endif #endif
+5 -5
View File
@@ -752,14 +752,14 @@ static int up_interrupt(struct uart_dev_s *dev)
* - Overflow condition for the receive buffer OERR (UxSTA bit 1) occurs * - Overflow condition for the receive buffer OERR (UxSTA bit 1) occurs
*/ */
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_ERROR
if (up_pending_irq(priv->irqe)) if (up_pending_irq(priv->irqe))
{ {
/* Clear the pending error interrupt */ /* Clear the pending error interrupt */
up_clrpend_irq(priv->irqe); up_clrpend_irq(priv->irqe);
_llerr("ERROR: interrupt STA: %08x\n", _err("ERROR: interrupt STA: %08x\n",
up_serialin(priv, PIC32MZ_UART_STA_OFFSET)); up_serialin(priv, PIC32MZ_UART_STA_OFFSET));
handled = true; handled = true;
} }
#endif #endif
@@ -1008,7 +1008,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
*/ */
#ifndef CONFIG_SUPPRESS_SERIAL_INTS #ifndef CONFIG_SUPPRESS_SERIAL_INTS
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_ERROR
up_enable_irq(priv->irqe); up_enable_irq(priv->irqe);
#endif #endif
up_enable_irq(priv->irqrx); up_enable_irq(priv->irqrx);
@@ -1017,7 +1017,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
} }
else else
{ {
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_ERROR
up_disable_irq(priv->irqe); up_disable_irq(priv->irqe);
#endif #endif
up_disable_irq(priv->irqrx); up_disable_irq(priv->irqrx);
+1 -1
View File
@@ -73,7 +73,7 @@ static void up_stackdump(void)
if (sp >= stack_base || sp < stack_base - stack_size) if (sp >= stack_base || sp < stack_base - stack_size)
{ {
_llerr("ERROR: Stack pointer is not within allocated stack\n"); _err("ERROR: Stack pointer is not within allocated stack\n");
return; return;
} }
else else
+4 -4
View File
@@ -209,7 +209,7 @@ static void unload_callback(int signo, siginfo_t *info, void *ucontext)
if (!info || signo != SIGCHLD) if (!info || signo != SIGCHLD)
{ {
bllerr("ERROR:Bad signal callback: signo=%d info=%p\n", signo, info); berr("ERROR:Bad signal callback: signo=%d info=%p\n", signo, info);
return; return;
} }
@@ -218,7 +218,7 @@ static void unload_callback(int signo, siginfo_t *info, void *ucontext)
bin = unload_list_remove(info->si_pid); bin = unload_list_remove(info->si_pid);
if (!bin) if (!bin)
{ {
bllerr("ERROR: Could not find load info for PID=%d\n", info->si_pid); berr("ERROR: Could not find load info for PID=%d\n", info->si_pid);
return; return;
} }
@@ -227,7 +227,7 @@ static void unload_callback(int signo, siginfo_t *info, void *ucontext)
ret = unload_module(bin); ret = unload_module(bin);
if (ret < 0) if (ret < 0)
{ {
bllerr("ERROR: unload_module failed: %d\n", get_errno()); berr("ERROR: unload_module failed: %d\n", get_errno());
} }
/* Free the load structure */ /* Free the load structure */
@@ -317,7 +317,7 @@ int schedule_unload(pid_t pid, FAR struct binary_s *bin)
flags = enter_critical_section(); flags = enter_critical_section();
if (unload_list_remove(pid) != bin) if (unload_list_remove(pid) != bin)
{ {
bllerr("ERROR: Failed to remove structure\n"); berr("ERROR: Failed to remove structure\n");
} }
leave_critical_section(flags); leave_critical_section(flags);
+2 -2
View File
@@ -114,7 +114,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
spi = tiva_ssibus_initialize(0); spi = tiva_ssibus_initialize(0);
if (!spi) if (!spi)
{ {
gllerr("ERROR: Failed to initialize SSI port 0\n"); gerr("ERROR: Failed to initialize SSI port 0\n");
} }
else else
{ {
@@ -123,7 +123,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
dev = rit_initialize(spi, devno); dev = rit_initialize(spi, devno);
if (!dev) if (!dev)
{ {
gllerr("ERROR: Failed to bind SSI port 0 to OLED %d: %d\n", devno); gerr("ERROR: Failed to bind SSI port 0 to OLED %d: %d\n", devno);
} }
else else
{ {
+2 -2
View File
@@ -113,7 +113,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
spi = tiva_ssibus_initialize(0); spi = tiva_ssibus_initialize(0);
if (!spi) if (!spi)
{ {
gllerr("ERROR: Failed to initialize SSI port 0\n"); gerr("ERROR: Failed to initialize SSI port 0\n");
} }
else else
{ {
@@ -122,7 +122,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
dev = rit_initialize(spi, devno); dev = rit_initialize(spi, devno);
if (!dev) if (!dev)
{ {
gllerr("ERROR: Failed to bind SSI port 0 to OLED %d: %d\n", devno); gerr("ERROR: Failed to bind SSI port 0 to OLED %d: %d\n", devno);
} }
else else
{ {
+2 -2
View File
@@ -112,7 +112,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
spi = lpc17_sspbus_initialize(1); spi = lpc17_sspbus_initialize(1);
if (!spi) if (!spi)
{ {
gllerr("ERROR: Failed to initialize SPI port 1\n"); gerr("ERROR: Failed to initialize SPI port 1\n");
} }
else else
{ {
@@ -121,7 +121,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
dev = ug_initialize(spi, devno); dev = ug_initialize(spi, devno);
if (!dev) if (!dev)
{ {
gllerr("ERROR: Failed to bind SPI port 1 to OLED %d: %d\n", devno); gerr("ERROR: Failed to bind SPI port 1 to OLED %d: %d\n", devno);
} }
else else
{ {
+1 -1
View File
@@ -187,7 +187,7 @@ void up_vs1053initialize(FAR struct spi_dev_s* spi)
pVs1053 = vs1053_initialize(spi, &g_vs1053lower.lower, VS1053_DEVNO); pVs1053 = vs1053_initialize(spi, &g_vs1053lower.lower, VS1053_DEVNO);
if (pVs1053 == NULL) if (pVs1053 == NULL)
{ {
audllerr("ERROR: Failed to bind SPI port %d VS1053 device\n", VS1053_DEVNO); auderr("ERROR: Failed to bind SPI port %d VS1053 device\n", VS1053_DEVNO);
return; return;
} }
+4 -23
View File
@@ -53,42 +53,23 @@
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Enables debug output from this file (needs CONFIG_DEBUG_FEATURES with #ifdef CONFIG_DEBUG_INPUT
* CONFIG_DEBUG_INFO too) # define btnerr _err
*/ # define btninfo(x...) _info
#undef BUTTON_DEBUG /* Define to enable debug */
#undef BUTTON_VERBOSE /* Define to enable verbose debug */
#ifdef BUTTON_DEBUG
# define btnerr _llerr
# ifdef BUTTON_VERBOSE
# define btninfo _llerr
# else
# define btninfo(x...)
# endif # endif
#else #else
# undef BUTTON_VERBOSE
# define btnerr(x...) # define btnerr(x...)
# define btninfo(x...) # define btninfo(x...)
#endif #endif
/* Dump GPIO registers */ /* Dump GPIO registers */
#ifdef BUTTON_VERBOSE #ifdef CONFIG_DEBUG_INPUT
# define btn_dumpgpio(m) m9s12_dumpgpio(m) # define btn_dumpgpio(m) m9s12_dumpgpio(m)
#else #else
# define btn_dumpgpio(m) # define btn_dumpgpio(m)
#endif #endif
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
+2 -2
View File
@@ -205,7 +205,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
spi = lpc17_sspbus_initialize(0); spi = lpc17_sspbus_initialize(0);
if (!spi) if (!spi)
{ {
gllerr("ERROR: Failed to initialize SSP port 0\n"); gerr("ERROR: Failed to initialize SSP port 0\n");
} }
else else
{ {
@@ -214,7 +214,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
dev = nokia_lcdinitialize(spi, devno); dev = nokia_lcdinitialize(spi, devno);
if (!dev) if (!dev)
{ {
gllerr("ERROR: Failed to bind SSP port 0 to LCD %d: %d\n", devno); gerr("ERROR: Failed to bind SSP port 0 to LCD %d: %d\n", devno);
} }
else else
{ {
-16
View File
@@ -44,22 +44,6 @@
#include "sabre-6quad.h" #include "sabre-6quad.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
+2 -12
View File
@@ -45,16 +45,6 @@
#include "sama5d2-xult.h" #include "sama5d2-xult.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
@@ -77,8 +67,8 @@ int sam_bringup(void)
ret = mount(NULL, SAMA5_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, SAMA5_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
syslog(LOG_ERR, "ERROR: Failed to mount procfs at %s: %d\n", _err("ERROR: Failed to mount procfs at %s: %d\n",
SAMA5_PROCFS_MOUNTPOINT, ret); SAMA5_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif
+22 -30
View File
@@ -69,14 +69,6 @@
(((n)+CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE-1) / \ (((n)+CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE-1) / \
CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE) CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE)
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
@@ -171,7 +163,7 @@ int sam_bringup(void)
ret = sam_nand_automount(NAND_MINOR); ret = sam_nand_automount(NAND_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_nand_automount failed: %d\n", ret); _err("ERROR: sam_nand_automount failed: %d\n", ret);
} }
#endif #endif
@@ -181,7 +173,7 @@ int sam_bringup(void)
ret = sam_at25_automount(AT25_MINOR); ret = sam_at25_automount(AT25_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_at25_automount failed: %d\n", ret); _err("ERROR: sam_at25_automount failed: %d\n", ret);
} }
#endif #endif
@@ -192,8 +184,8 @@ int sam_bringup(void)
ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR); ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n", _err("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
HSMCI0_SLOTNO, HSMCI0_MINOR, ret); HSMCI0_SLOTNO, HSMCI0_MINOR, ret);
} }
#ifdef CONFIG_SAMA5D4EK_HSMCI0_MOUNT #ifdef CONFIG_SAMA5D4EK_HSMCI0_MOUNT
@@ -209,8 +201,8 @@ int sam_bringup(void)
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount %s: %d\n", _err("ERROR: Failed to mount %s: %d\n",
CONFIG_SAMA5D4EK_HSMCI0_MOUNT_MOUNTPOINT, errno); CONFIG_SAMA5D4EK_HSMCI0_MOUNT_MOUNTPOINT, errno);
} }
} }
#endif #endif
@@ -222,8 +214,8 @@ int sam_bringup(void)
ret = sam_hsmci_initialize(HSMCI1_SLOTNO, HSMCI1_MINOR); ret = sam_hsmci_initialize(HSMCI1_SLOTNO, HSMCI1_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n", _err("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
HSMCI1_SLOTNO, HSMCI1_MINOR, ret); HSMCI1_SLOTNO, HSMCI1_MINOR, ret);
} }
#ifdef CONFIG_SAMA5D4EK_HSMCI1_MOUNT #ifdef CONFIG_SAMA5D4EK_HSMCI1_MOUNT
@@ -239,8 +231,8 @@ int sam_bringup(void)
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount %s: %d\n", _err("ERROR: Failed to mount %s: %d\n",
CONFIG_SAMA5D4EK_HSMCI1_MOUNT_MOUNTPOINT, errno); CONFIG_SAMA5D4EK_HSMCI1_MOUNT_MOUNTPOINT, errno);
} }
} }
#endif #endif
@@ -261,7 +253,7 @@ int sam_bringup(void)
CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE); CONFIG_SAMA5D4EK_ROMFS_ROMDISK_SECTSIZE);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: romdisk_register failed: %d\n", -ret); _err("ERROR: romdisk_register failed: %d\n", -ret);
} }
else else
{ {
@@ -272,9 +264,9 @@ int sam_bringup(void)
"romfs", MS_RDONLY, NULL); "romfs", MS_RDONLY, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: mount(%s,%s,romfs) failed: %d\n", _err("ERROR: mount(%s,%s,romfs) failed: %d\n",
CONFIG_SAMA5D4EK_ROMFS_ROMDISK_DEVNAME, CONFIG_SAMA5D4EK_ROMFS_ROMDISK_DEVNAME,
CONFIG_SAMA5D4EK_ROMFS_MOUNT_MOUNTPOINT, errno); CONFIG_SAMA5D4EK_ROMFS_MOUNT_MOUNTPOINT, errno);
} }
} }
#endif #endif
@@ -287,7 +279,7 @@ int sam_bringup(void)
ret = sam_usbhost_initialize(); ret = sam_usbhost_initialize();
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize USB host: %d\n", ret); _err("ERROR: Failed to initialize USB host: %d\n", ret);
} }
#endif #endif
@@ -297,7 +289,7 @@ int sam_bringup(void)
ret = usbmonitor_start(0, NULL); ret = usbmonitor_start(0, NULL);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to start the USB monitor: %d\n", ret); _err("ERROR: Failed to start the USB monitor: %d\n", ret);
} }
#endif #endif
@@ -307,7 +299,7 @@ int sam_bringup(void)
ret = sam_wm8904_initialize(0); ret = sam_wm8904_initialize(0);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize WM8904 audio: %d\n", ret); _err("ERROR: Failed to initialize WM8904 audio: %d\n", ret);
} }
#endif #endif
@@ -317,18 +309,18 @@ int sam_bringup(void)
ret = sam_audio_null_initialize(0); ret = sam_audio_null_initialize(0);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize the NULL audio device: %d\n", ret); _err("ERROR: Failed to initialize the NULL audio device: %d\n", ret);
} }
#endif #endif
#ifdef HAVE_ELF #ifdef HAVE_ELF
/* Initialize the ELF binary loader */ /* Initialize the ELF binary loader */
SYSLOG("Initializing the ELF binary loader\n"); _err("Initializing the ELF binary loader\n");
ret = elf_initialize(); ret = elf_initialize();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Initialization of the ELF loader failed: %d\n", ret); _err("ERROR: Initialization of the ELF loader failed: %d\n", ret);
} }
#endif #endif
@@ -338,8 +330,8 @@ int sam_bringup(void)
ret = mount(NULL, SAMA5_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, SAMA5_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", _err("ERROR: Failed to mount procfs at %s: %d\n",
SAMA5_PROCFS_MOUNTPOINT, ret); SAMA5_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif
+19 -27
View File
@@ -76,14 +76,6 @@
(((n)+CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE-1) / \ (((n)+CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE-1) / \
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE) CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE)
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
@@ -177,7 +169,7 @@ int sam_bringup(void)
ret = sam_emac0_setmac(); ret = sam_emac0_setmac();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_emac0_setmac() failed: %d\n", ret); _err("ERROR: sam_emac0_setmac() failed: %d\n", ret);
} }
#endif #endif
@@ -187,8 +179,8 @@ int sam_bringup(void)
ret = mount(NULL, SAME70_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, SAME70_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", _err("ERROR: Failed to mount procfs at %s: %d\n",
SAME70_PROCFS_MOUNTPOINT, ret); SAME70_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif
@@ -200,7 +192,7 @@ int sam_bringup(void)
ret = sam_at24config(); ret = sam_at24config();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_at24config() failed: %d\n", ret); _err("ERROR: sam_at24config() failed: %d\n", ret);
} }
#endif #endif
@@ -210,8 +202,8 @@ int sam_bringup(void)
ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR); ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n", _err("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
HSMCI0_SLOTNO, HSMCI0_MINOR, ret); HSMCI0_SLOTNO, HSMCI0_MINOR, ret);
} }
#ifdef CONFIG_SAME70XPLAINED_HSMCI0_MOUNT #ifdef CONFIG_SAME70XPLAINED_HSMCI0_MOUNT
@@ -227,8 +219,8 @@ int sam_bringup(void)
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount %s: %d\n", _err("ERROR: Failed to mount %s: %d\n",
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT, errno); CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT, errno);
} }
} }
@@ -249,7 +241,7 @@ int sam_bringup(void)
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE); CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: romdisk_register failed: %d\n", -ret); _err("ERROR: romdisk_register failed: %d\n", -ret);
} }
else else
{ {
@@ -260,9 +252,9 @@ int sam_bringup(void)
"romfs", MS_RDONLY, NULL); "romfs", MS_RDONLY, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: mount(%s,%s,romfs) failed: %d\n", _err("ERROR: mount(%s,%s,romfs) failed: %d\n",
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_DEVNAME, CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_DEVNAME,
CONFIG_SAME70XPLAINED_ROMFS_MOUNT_MOUNTPOINT, errno); CONFIG_SAME70XPLAINED_ROMFS_MOUNT_MOUNTPOINT, errno);
} }
} }
#endif #endif
@@ -277,7 +269,7 @@ int sam_bringup(void)
mtd = progmem_initialize(); mtd = progmem_initialize();
if (!mtd) if (!mtd)
{ {
SYSLOG("ERROR: progmem_initialize failed\n"); _err("ERROR: progmem_initialize failed\n");
} }
/* Use the FTL layer to wrap the MTD driver as a block driver */ /* Use the FTL layer to wrap the MTD driver as a block driver */
@@ -285,7 +277,7 @@ int sam_bringup(void)
ret = ftl_initialize(PROGMEM_MTD_MINOR, mtd); ret = ftl_initialize(PROGMEM_MTD_MINOR, mtd);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to initialize the FTL layer: %d\n", ret); _err("ERROR: Failed to initialize the FTL layer: %d\n", ret);
return ret; return ret;
} }
@@ -299,7 +291,7 @@ int sam_bringup(void)
ret = bchdev_register(blockdev, chardev, false); ret = bchdev_register(blockdev, chardev, false);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: bchdev_register %s failed: %d\n", chardev, ret); _err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
return ret; return ret;
} }
#endif #endif
@@ -312,7 +304,7 @@ int sam_bringup(void)
ret = sam_usbhost_initialize(); ret = sam_usbhost_initialize();
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize USB host: %d\n", ret); _err("ERROR: Failed to initialize USB host: %d\n", ret);
} }
#endif #endif
@@ -322,18 +314,18 @@ int sam_bringup(void)
ret = usbmonitor_start(0, NULL); ret = usbmonitor_start(0, NULL);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to start the USB monitor: %d\n", ret); _err("ERROR: Failed to start the USB monitor: %d\n", ret);
} }
#endif #endif
#ifdef HAVE_ELF #ifdef HAVE_ELF
/* Initialize the ELF binary loader */ /* Initialize the ELF binary loader */
SYSLOG("Initializing the ELF binary loader\n"); _err("Initializing the ELF binary loader\n");
ret = elf_initialize(); ret = elf_initialize();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Initialization of the ELF loader failed: %d\n", ret); _err("ERROR: Initialization of the ELF loader failed: %d\n", ret);
} }
#endif #endif
+33 -41
View File
@@ -99,14 +99,6 @@
(((n)+CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE-1) / \ (((n)+CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE-1) / \
CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE) CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE)
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
@@ -206,7 +198,7 @@ int sam_bringup(void)
ret = userled_lower_initialize(LED_DRIVER_PATH); ret = userled_lower_initialize(LED_DRIVER_PATH);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: userled_lower_initialize() failed: %d\n", ret); _err("ERROR: userled_lower_initialize() failed: %d\n", ret);
} }
#endif #endif
@@ -216,7 +208,7 @@ int sam_bringup(void)
i2c = sam_i2cbus_initialize(PCF85263_TWI_BUS); i2c = sam_i2cbus_initialize(PCF85263_TWI_BUS);
if (i2c == NULL) if (i2c == NULL)
{ {
SYSLOG("ERROR: sam_i2cbus_initialize(%d) failed\n", PCF85263_TWI_BUS); _err("ERROR: sam_i2cbus_initialize(%d) failed\n", PCF85263_TWI_BUS);
} }
else else
{ {
@@ -225,7 +217,7 @@ int sam_bringup(void)
ret = pcf85263_rtc_initialize(i2c); ret = pcf85263_rtc_initialize(i2c);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: pcf85263_rtc_initialize() failed: %d\n", ret); _err("ERROR: pcf85263_rtc_initialize() failed: %d\n", ret);
} }
else else
{ {
@@ -241,7 +233,7 @@ int sam_bringup(void)
i2c = sam_i2cbus_initialize(DSXXXX_TWI_BUS); i2c = sam_i2cbus_initialize(DSXXXX_TWI_BUS);
if (i2c == NULL) if (i2c == NULL)
{ {
SYSLOG("ERROR: sam_i2cbus_initialize(%d) failed\n", DSXXXX_TWI_BUS); _err("ERROR: sam_i2cbus_initialize(%d) failed\n", DSXXXX_TWI_BUS);
} }
else else
{ {
@@ -250,7 +242,7 @@ int sam_bringup(void)
ret = dsxxxx_rtc_initialize(i2c); ret = dsxxxx_rtc_initialize(i2c);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: dsxxxx_rtc_initialize() failed: %d\n", ret); _err("ERROR: dsxxxx_rtc_initialize() failed: %d\n", ret);
} }
else else
{ {
@@ -269,7 +261,7 @@ int sam_bringup(void)
ret = sam_emac0_setmac(); ret = sam_emac0_setmac();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_emac0_setmac() failed: %d\n", ret); _err("ERROR: sam_emac0_setmac() failed: %d\n", ret);
} }
#endif #endif
@@ -279,8 +271,8 @@ int sam_bringup(void)
ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, SAMV71_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", _err("ERROR: Failed to mount procfs at %s: %d\n",
SAMV71_PROCFS_MOUNTPOINT, ret); SAMV71_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif
@@ -292,7 +284,7 @@ int sam_bringup(void)
ret = sam_at24config(); ret = sam_at24config();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_at24config() failed: %d\n", ret); _err("ERROR: sam_at24config() failed: %d\n", ret);
} }
#endif #endif
@@ -302,8 +294,8 @@ int sam_bringup(void)
ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR); ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n", _err("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
HSMCI0_SLOTNO, HSMCI0_MINOR, ret); HSMCI0_SLOTNO, HSMCI0_MINOR, ret);
} }
#ifdef CONFIG_SAMV71XULT_HSMCI0_MOUNT #ifdef CONFIG_SAMV71XULT_HSMCI0_MOUNT
@@ -319,8 +311,8 @@ int sam_bringup(void)
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount %s: %d\n", _err("ERROR: Failed to mount %s: %d\n",
CONFIG_SAMV71XULT_HSMCI0_MOUNT_MOUNTPOINT, errno); CONFIG_SAMV71XULT_HSMCI0_MOUNT_MOUNTPOINT, errno);
} }
} }
@@ -341,7 +333,7 @@ int sam_bringup(void)
CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE); CONFIG_SAMV71XULT_ROMFS_ROMDISK_SECTSIZE);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: romdisk_register failed: %d\n", -ret); _err("ERROR: romdisk_register failed: %d\n", -ret);
} }
else else
{ {
@@ -352,9 +344,9 @@ int sam_bringup(void)
"romfs", MS_RDONLY, NULL); "romfs", MS_RDONLY, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: mount(%s,%s,romfs) failed: %d\n", _err("ERROR: mount(%s,%s,romfs) failed: %d\n",
CONFIG_SAMV71XULT_ROMFS_ROMDISK_DEVNAME, CONFIG_SAMV71XULT_ROMFS_ROMDISK_DEVNAME,
CONFIG_SAMV71XULT_ROMFS_MOUNT_MOUNTPOINT, errno); CONFIG_SAMV71XULT_ROMFS_MOUNT_MOUNTPOINT, errno);
} }
} }
#endif #endif
@@ -365,7 +357,7 @@ int sam_bringup(void)
qspi = sam_qspi_initialize(0); qspi = sam_qspi_initialize(0);
if (!qspi) if (!qspi)
{ {
SYSLOG("ERROR: sam_qspi_initialize failed\n"); _err("ERROR: sam_qspi_initialize failed\n");
} }
else else
{ {
@@ -376,7 +368,7 @@ int sam_bringup(void)
mtd = s25fl1_initialize(qspi, true); mtd = s25fl1_initialize(qspi, true);
if (!mtd) if (!mtd)
{ {
SYSLOG("ERROR: s25fl1_initialize failed\n"); _err("ERROR: s25fl1_initialize failed\n");
} }
#ifdef HAVE_S25FL1_SMARTFS #ifdef HAVE_S25FL1_SMARTFS
@@ -385,7 +377,7 @@ int sam_bringup(void)
ret = smart_initialize(S25FL1_SMART_MINOR, mtd, NULL); ret = smart_initialize(S25FL1_SMART_MINOR, mtd, NULL);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize SmartFS: %d\n", ret); _err("ERROR: Failed to initialize SmartFS: %d\n", ret);
} }
#elif defined(HAVE_S25FL1_NXFFS) #elif defined(HAVE_S25FL1_NXFFS)
@@ -394,7 +386,7 @@ int sam_bringup(void)
ret = nxffs_initialize(mtd); ret = nxffs_initialize(mtd);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: NXFFS initialization failed: %d\n", ret); _err("ERROR: NXFFS initialization failed: %d\n", ret);
} }
/* Mount the file system at /mnt/s25fl1 */ /* Mount the file system at /mnt/s25fl1 */
@@ -402,7 +394,7 @@ int sam_bringup(void)
ret = mount(NULL, "/mnt/s25fl1", "nxffs", 0, NULL); ret = mount(NULL, "/mnt/s25fl1", "nxffs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount the NXFFS volume: %d\n", errno); _err("ERROR: Failed to mount the NXFFS volume: %d\n", errno);
return ret; return ret;
} }
@@ -412,7 +404,7 @@ int sam_bringup(void)
ret = ftl_initialize(S25FL1_MTD_MINOR, mtd); ret = ftl_initialize(S25FL1_MTD_MINOR, mtd);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to initialize the FTL layer: %d\n", ret); _err("ERROR: Failed to initialize the FTL layer: %d\n", ret);
return ret; return ret;
} }
@@ -426,7 +418,7 @@ int sam_bringup(void)
ret = bchdev_register(blockdev, chardev, false); ret = bchdev_register(blockdev, chardev, false);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: bchdev_register %s failed: %d\n", chardev, ret); _err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
return ret; return ret;
} }
#endif #endif
@@ -443,7 +435,7 @@ int sam_bringup(void)
mtd = progmem_initialize(); mtd = progmem_initialize();
if (!mtd) if (!mtd)
{ {
SYSLOG("ERROR: progmem_initialize failed\n"); _err("ERROR: progmem_initialize failed\n");
} }
/* Use the FTL layer to wrap the MTD driver as a block driver */ /* Use the FTL layer to wrap the MTD driver as a block driver */
@@ -451,7 +443,7 @@ int sam_bringup(void)
ret = ftl_initialize(PROGMEM_MTD_MINOR, mtd); ret = ftl_initialize(PROGMEM_MTD_MINOR, mtd);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to initialize the FTL layer: %d\n", ret); _err("ERROR: Failed to initialize the FTL layer: %d\n", ret);
return ret; return ret;
} }
@@ -465,7 +457,7 @@ int sam_bringup(void)
ret = bchdev_register(blockdev, chardev, false); ret = bchdev_register(blockdev, chardev, false);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: bchdev_register %s failed: %d\n", chardev, ret); _err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
return ret; return ret;
} }
#endif #endif
@@ -478,7 +470,7 @@ int sam_bringup(void)
ret = sam_usbhost_initialize(); ret = sam_usbhost_initialize();
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize USB host: %d\n", ret); _err("ERROR: Failed to initialize USB host: %d\n", ret);
} }
#endif #endif
@@ -488,7 +480,7 @@ int sam_bringup(void)
ret = usbmonitor_start(0, NULL); ret = usbmonitor_start(0, NULL);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to start the USB monitor: %d\n", ret); _err("ERROR: Failed to start the USB monitor: %d\n", ret);
} }
#endif #endif
@@ -498,7 +490,7 @@ int sam_bringup(void)
ret = sam_wm8904_initialize(0); ret = sam_wm8904_initialize(0);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize WM8904 audio: %d\n", ret); _err("ERROR: Failed to initialize WM8904 audio: %d\n", ret);
} }
#endif #endif
@@ -508,18 +500,18 @@ int sam_bringup(void)
ret = sam_audio_null_initialize(0); ret = sam_audio_null_initialize(0);
if (ret != OK) if (ret != OK)
{ {
SYSLOG("ERROR: Failed to initialize the NULL audio device: %d\n", ret); _err("ERROR: Failed to initialize the NULL audio device: %d\n", ret);
} }
#endif #endif
#ifdef HAVE_ELF #ifdef HAVE_ELF
/* Initialize the ELF binary loader */ /* Initialize the ELF binary loader */
SYSLOG("Initializing the ELF binary loader\n"); _err("Initializing the ELF binary loader\n");
ret = elf_initialize(); ret = elf_initialize();
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Initialization of the ELF loader failed: %d\n", ret); _err("ERROR: Initialization of the ELF loader failed: %d\n", ret);
} }
#endif #endif
+2 -14
View File
@@ -53,18 +53,6 @@
int trv_mount_world(int minor, FAR const char *mountpoint); int trv_mount_world(int minor, FAR const char *mountpoint);
#endif #endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
****************************************************************************/ ****************************************************************************/
@@ -107,8 +95,8 @@ int sim_bringup(void)
ret = mount(NULL, SIM_PROCFS_MOUNTPOINT, "procfs", 0, NULL); ret = mount(NULL, SIM_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n", _err("ERROR: Failed to mount procfs at %s: %d\n",
SIM_PROCFS_MOUNTPOINT, ret); SIM_PROCFS_MOUNTPOINT, ret);
} }
#endif #endif
+1 -1
View File
@@ -229,7 +229,7 @@ static int stm32_rtc_alarm(time_t tv_sec, time_t tv_nsec, bool exti)
ret = stm32_rtc_setalarm(&alarmtime, stm32_alarmcb); ret = stm32_rtc_setalarm(&alarmtime, stm32_alarmcb);
if (ret < 0) if (ret < 0)
{ {
sllerr("ERROR: Warning: The alarm is already set\n"); serr("ERROR: Warning: The alarm is already set\n");
} }
return ret; return ret;
+5 -17
View File
@@ -86,18 +86,6 @@
# include "stm32l4_qspi.h" # include "stm32l4_qspi.h"
#endif #endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Debug ********************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
# define SYSLOG _llerr
#else
# define SYSLOG _err
#endif
/**************************************************************************** /****************************************************************************
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
@@ -204,7 +192,7 @@ FAR struct mtd_dev_s *mtd_temp;
g_qspi = stm32l4_qspi_initialize(0); g_qspi = stm32l4_qspi_initialize(0);
if (!g_qspi) if (!g_qspi)
{ {
SYSLOG("ERROR: stm32l4_qspi_initialize failed\n"); _err("ERROR: stm32l4_qspi_initialize failed\n");
return ret; return ret;
} }
else else
@@ -216,7 +204,7 @@ FAR struct mtd_dev_s *mtd_temp;
mtd_temp = n25qxxx_initialize(g_qspi, true); mtd_temp = n25qxxx_initialize(g_qspi, true);
if (!mtd_temp) if (!mtd_temp)
{ {
SYSLOG("ERROR: n25qxxx_initialize failed\n"); _err("ERROR: n25qxxx_initialize failed\n");
return ret; return ret;
} }
g_mtd_fs = mtd_temp; g_mtd_fs = mtd_temp;
@@ -231,7 +219,7 @@ FAR struct mtd_dev_s *mtd_temp;
#endif #endif
if (!g_mtd_fs) if (!g_mtd_fs)
{ {
SYSLOG("ERROR: mtd_partition failed\n"); _err("ERROR: mtd_partition failed\n");
return ret; return ret;
} }
@@ -243,7 +231,7 @@ FAR struct mtd_dev_s *mtd_temp;
ret = ftl_initialize(N25QXXX_MTD_MINOR, g_mtd_fs); ret = ftl_initialize(N25QXXX_MTD_MINOR, g_mtd_fs);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: Failed to initialize the FTL layer: %d\n", ret); _err("ERROR: Failed to initialize the FTL layer: %d\n", ret);
return ret; return ret;
} }
@@ -265,7 +253,7 @@ FAR struct mtd_dev_s *mtd_temp;
ret = bchdev_register(blockdev, chardev, false); ret = bchdev_register(blockdev, chardev, false);
if (ret < 0) if (ret < 0)
{ {
SYSLOG("ERROR: bchdev_register %s failed: %d\n", chardev, ret); _err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
return ret; return ret;
} }
} }
+2 -2
View File
@@ -90,7 +90,7 @@ int board_lcd_initialize(void)
g_spidev = lpc17_sspbus_initialize(0); g_spidev = lpc17_sspbus_initialize(0);
if (!g_spidev) if (!g_spidev)
{ {
lcdllerr("ERROR: Failed to initialize SSP port 0\n"); lcderr("ERROR: Failed to initialize SSP port 0\n");
return 0; return 0;
} }
@@ -109,7 +109,7 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev)
g_lcddev = st7567_initialize(g_spidev, lcddev); g_lcddev = st7567_initialize(g_spidev, lcddev);
if (!g_lcddev) if (!g_lcddev)
{ {
lcdllerr("ERROR: Failed to bind SSI port 0 to OLCD %d: %d\n", lcddev); lcderr("ERROR: Failed to bind SSI port 0 to OLCD %d: %d\n", lcddev);
} }
else else
{ {

Some files were not shown because too many files have changed in this diff Show More