arch/avr/: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
This commit is contained in:
parent
688e553d1d
commit
5cc9a13f95
@ -228,7 +228,7 @@ static void gpio_porthandler(uint32_t regbase, int irqbase, uint32_t irqset, voi
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
llerr("No handler: pin=%d ifr=%08x irqset=%08x",
|
llerr("ERROR: No handler: pin=%d ifr=%08x irqset=%08x",
|
||||||
pin, ifr, irqset);
|
pin, ifr, irqset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -247,8 +247,8 @@ static void gpio_porthandler(uint32_t regbase, int irqbase, uint32_t irqset, voi
|
|||||||
putreg32(bit, regbase + AVR32_GPIO_IFRC_OFFSET);
|
putreg32(bit, regbase + AVR32_GPIO_IFRC_OFFSET);
|
||||||
ifr &= ~bit;
|
ifr &= ~bit;
|
||||||
|
|
||||||
llerr("IRQ on unconfigured pin: pin=%d ifr=%08x irqset=%08x",
|
llwarn("WARNING: IRQ on unconfigured pin: pin=%d ifr=%08x irqset=%08x",
|
||||||
pin, ifr, irqset);
|
pin, ifr, irqset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,7 @@ static int up_getgrp(unsigned int irq)
|
|||||||
static int avr32_xcptn(int irq, FAR void *context)
|
static int avr32_xcptn(int irq, FAR void *context)
|
||||||
{
|
{
|
||||||
(void)up_irq_save();
|
(void)up_irq_save();
|
||||||
llerr("PANIC!!! Exception IRQ: %d\n", irq);
|
alert("PANIC!!! Exception IRQ: %d\n", irq);
|
||||||
PANIC();
|
PANIC();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -321,11 +321,11 @@ unsigned int avr32_intirqno(unsigned int level)
|
|||||||
mask <<= 1;
|
mask <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
llerr("Spurious interrupt: group=%d IRR=%08x\n", group, irr);
|
llerr("ERROR: Spurious interrupt: group=%d IRR=%08x\n", group, irr);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
llerr("Bad group: %d\n", group);
|
llerr("ERROR: Bad group: %d\n", group);
|
||||||
return AVR32_IRQ_BADVECTOR;
|
return AVR32_IRQ_BADVECTOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ void up_release_pending(void)
|
|||||||
{
|
{
|
||||||
struct tcb_s *rtcb = this_task();
|
struct tcb_s *rtcb = this_task();
|
||||||
|
|
||||||
sllerr("From TCB=%p\n", rtcb);
|
sllinfo("From TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
|||||||
struct tcb_s *rtcb = this_task();
|
struct tcb_s *rtcb = this_task();
|
||||||
bool switch_needed;
|
bool switch_needed;
|
||||||
|
|
||||||
sllerr("TCB=%p PRI=%d\n", tcb, priority);
|
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||||
|
|
||||||
/* Remove the tcb task from the ready-to-run list.
|
/* Remove the tcb task from the ready-to-run list.
|
||||||
* sched_removereadytorun will return true if we just
|
* sched_removereadytorun will return true if we just
|
||||||
|
@ -94,7 +94,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
serr("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
|
sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
|
||||||
|
|
||||||
/* Make sure that interrupts are disabled */
|
/* Make sure that interrupts are disabled */
|
||||||
|
|
||||||
@ -108,7 +108,8 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
|
|||||||
* being delivered to the currently executing task.
|
* being delivered to the currently executing task.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
serr("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
|
sinfo("rtcb=0x%p g_current_regs=0x%p\n",
|
||||||
|
this_task(), g_current_regs);
|
||||||
|
|
||||||
if (tcb == this_task())
|
if (tcb == this_task())
|
||||||
{
|
{
|
||||||
|
@ -82,7 +82,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
board_autoled_on(LED_SIGNAL);
|
board_autoled_on(LED_SIGNAL);
|
||||||
|
|
||||||
serr("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sinfo("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
||||||
ASSERT(rtcb->xcp.sigdeliver != NULL);
|
ASSERT(rtcb->xcp.sigdeliver != NULL);
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ void up_sigdeliver(void)
|
|||||||
* errno that is needed by the user logic (it is probably EINTR).
|
* errno that is needed by the user logic (it is probably EINTR).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
serr("Resuming\n");
|
sinfo("Resuming\n");
|
||||||
(void)up_irq_save();
|
(void)up_irq_save();
|
||||||
rtcb->pterrno = saved_errno;
|
rtcb->pterrno = saved_errno;
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ static uint32_t spi_setfrequency(FAR struct spi_dev_s *dev, uint32_t frequency)
|
|||||||
actual = priv->actual;
|
actual = priv->actual;
|
||||||
}
|
}
|
||||||
|
|
||||||
spierr("Frequency %d->%d\n", frequency, actual);
|
spiinfo("Frequency %d->%d\n", frequency, actual);
|
||||||
return actual;
|
return actual;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,7 +402,7 @@ static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const void *buffer, size
|
|||||||
{
|
{
|
||||||
FAR uint8_t *ptr = (FAR uint8_t *)buffer;
|
FAR uint8_t *ptr = (FAR uint8_t *)buffer;
|
||||||
|
|
||||||
spierr("nwords: %d\n", nwords);
|
spiinfo("nwords: %d\n", nwords);
|
||||||
while (nwords-- > 0)
|
while (nwords-- > 0)
|
||||||
{
|
{
|
||||||
(void)spi_send(dev, (uint16_t)*ptr++);
|
(void)spi_send(dev, (uint16_t)*ptr++);
|
||||||
@ -433,7 +433,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
|
|||||||
{
|
{
|
||||||
FAR uint8_t *ptr = (FAR uint8_t *)buffer;
|
FAR uint8_t *ptr = (FAR uint8_t *)buffer;
|
||||||
|
|
||||||
spierr("nwords: %d\n", nwords);
|
spiinfo("nwords: %d\n", nwords);
|
||||||
while (nwords-- > 0)
|
while (nwords-- > 0)
|
||||||
{
|
{
|
||||||
*ptr++ = spi_send(dev, (uint16_t)0xff);
|
*ptr++ = spi_send(dev, (uint16_t)0xff);
|
||||||
|
@ -67,7 +67,7 @@ void up_release_pending(void)
|
|||||||
{
|
{
|
||||||
struct tcb_s *rtcb = this_task();
|
struct tcb_s *rtcb = this_task();
|
||||||
|
|
||||||
sllerr("From TCB=%p\n", rtcb);
|
sllinfo("From TCB=%p\n", rtcb);
|
||||||
|
|
||||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ void up_reprioritize_rtr(struct tcb_s *tcb, uint8_t priority)
|
|||||||
struct tcb_s *rtcb = this_task();
|
struct tcb_s *rtcb = this_task();
|
||||||
bool switch_needed;
|
bool switch_needed;
|
||||||
|
|
||||||
sllerr("TCB=%p PRI=%d\n", tcb, priority);
|
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||||
|
|
||||||
/* Remove the tcb task from the ready-to-run list.
|
/* Remove the tcb task from the ready-to-run list.
|
||||||
* sched_removereadytorun will return true if we just
|
* sched_removereadytorun will return true if we just
|
||||||
|
@ -94,7 +94,7 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
|
|||||||
{
|
{
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
|
|
||||||
serr("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
|
sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
|
||||||
|
|
||||||
/* Make sure that interrupts are disabled */
|
/* Make sure that interrupts are disabled */
|
||||||
|
|
||||||
@ -108,7 +108,8 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
|
|||||||
* being delivered to the currently executing task.
|
* being delivered to the currently executing task.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
serr("rtcb=0x%p g_current_regs=0x%p\n", this_task(), g_current_regs);
|
sinfo("rtcb=0x%p g_current_regs=0x%p\n",
|
||||||
|
this_task(), g_current_regs);
|
||||||
|
|
||||||
if (tcb == this_task())
|
if (tcb == this_task())
|
||||||
{
|
{
|
||||||
|
@ -86,7 +86,7 @@ void up_sigdeliver(void)
|
|||||||
|
|
||||||
board_autoled_on(LED_SIGNAL);
|
board_autoled_on(LED_SIGNAL);
|
||||||
|
|
||||||
serr("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
sinfo("rtcb=%p sigdeliver=%p sigpendactionq.head=%p\n",
|
||||||
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
rtcb, rtcb->xcp.sigdeliver, rtcb->sigpendactionq.head);
|
||||||
ASSERT(rtcb->xcp.sigdeliver != NULL);
|
ASSERT(rtcb->xcp.sigdeliver != NULL);
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ void up_sigdeliver(void)
|
|||||||
* errno that is needed by the user logic (it is probably EINTR).
|
* errno that is needed by the user logic (it is probably EINTR).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
serr("Resuming\n");
|
sinfo("Resuming\n");
|
||||||
(void)up_irq_save();
|
(void)up_irq_save();
|
||||||
rtcb->pterrno = saved_errno;
|
rtcb->pterrno = saved_errno;
|
||||||
|
|
||||||
|
@ -77,8 +77,8 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
int i;
|
int i;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
serr(" TCB=%p name=%s pid=%d\n", tcb, tcb->argv[0], tcb->pid);
|
sinfo(" TCB=%p name=%s pid=%d\n", tcb, tcb->argv[0], tcb->pid);
|
||||||
serr(" priority=%d state=%d\n", tcb->sched_priority, tcb->task_state);
|
sinfo(" priority=%d state=%d\n", tcb->sched_priority, tcb->task_state);
|
||||||
|
|
||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
filelist = tcb->group->tg_filelist;
|
filelist = tcb->group->tg_filelist;
|
||||||
@ -87,8 +87,8 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
struct inode *inode = filelist->fl_files[i].f_inode;
|
struct inode *inode = filelist->fl_files[i].f_inode;
|
||||||
if (inode)
|
if (inode)
|
||||||
{
|
{
|
||||||
serr(" fd=%d refcount=%d\n",
|
sinfo(" fd=%d refcount=%d\n",
|
||||||
i, inode->i_crefs);
|
i, inode->i_crefs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -101,11 +101,11 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
if (filep->fs_fd >= 0)
|
if (filep->fs_fd >= 0)
|
||||||
{
|
{
|
||||||
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||||
serr(" fd=%d nbytes=%d\n",
|
sinfo(" fd=%d nbytes=%d\n",
|
||||||
filep->fs_fd,
|
filep->fs_fd,
|
||||||
filep->fs_bufpos - filep->fs_bufstart);
|
filep->fs_bufpos - filep->fs_bufstart);
|
||||||
#else
|
#else
|
||||||
serr(" fd=%d\n", filep->fs_fd);
|
sinfo(" fd=%d\n", filep->fs_fd);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -138,10 +138,10 @@ void _exit(int status)
|
|||||||
|
|
||||||
(void)up_irq_save();
|
(void)up_irq_save();
|
||||||
|
|
||||||
sllerr("TCB=%p exiting\n", this_task());
|
sllinfo("TCB=%p exiting\n", this_task());
|
||||||
|
|
||||||
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
#if defined(CONFIG_DUMP_ON_EXIT) && defined(CONFIG_DEBUG_FEATURES)
|
||||||
sllerr("Other tasks:\n");
|
sllinfo("Other tasks:\n");
|
||||||
sched_foreach(_up_dumponexit, NULL);
|
sched_foreach(_up_dumponexit, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -125,13 +125,13 @@ static void up_calibratedelay(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
llerr("Beginning 100s delay\n");
|
llwarn("Beginning 100s delay\n");
|
||||||
for (i = 0; i < 100; i++)
|
for (i = 0; i < 100; i++)
|
||||||
{
|
{
|
||||||
up_mdelay(1000);
|
up_mdelay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
llerr("End 100s delay\n");
|
llwarn("End 100s delay\n");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
# define up_calibratedelay()
|
# define up_calibratedelay()
|
||||||
|
Loading…
Reference in New Issue
Block a user