mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
This commit is contained in:
@@ -88,8 +88,8 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
int i;
|
||||
#endif
|
||||
|
||||
sllinfo(" TCB=%p name=%s\n", tcb, tcb->argv[0]);
|
||||
sllinfo(" priority=%d state=%d\n", tcb->sched_priority, tcb->task_state);
|
||||
sinfo(" TCB=%p name=%s\n", tcb, tcb->argv[0]);
|
||||
sinfo(" priority=%d state=%d\n", tcb->sched_priority, tcb->task_state);
|
||||
|
||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||
filelist = tcb->group->tg_filelist;
|
||||
@@ -98,8 +98,8 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
struct inode *inode = filelist->fl_files[i].f_inode;
|
||||
if (inode)
|
||||
{
|
||||
sllinfo(" fd=%d refcount=%d\n",
|
||||
i, inode->i_crefs);
|
||||
sinfo(" fd=%d refcount=%d\n",
|
||||
i, inode->i_crefs);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -112,11 +112,11 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
if (filep->fs_fd >= 0)
|
||||
{
|
||||
#if CONFIG_STDIO_BUFFER_SIZE > 0
|
||||
sllinfo(" fd=%d nbytes=%d\n",
|
||||
filep->fs_fd,
|
||||
filep->fs_bufpos - filep->fs_bufstart);
|
||||
sinfo(" fd=%d nbytes=%d\n",
|
||||
filep->fs_fd,
|
||||
filep->fs_bufpos - filep->fs_bufstart);
|
||||
#else
|
||||
sllinfo(" fd=%d\n", filep->fs_fd);
|
||||
sinfo(" fd=%d\n", filep->fs_fd);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -149,10 +149,10 @@ void _exit(int status)
|
||||
|
||||
(void)up_irq_save();
|
||||
|
||||
sllinfo("TCB=%p exiting\n", tcb);
|
||||
sinfo("TCB=%p exiting\n", tcb);
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
sllinfo("Other tasks:\n");
|
||||
sinfo("Other tasks:\n");
|
||||
sched_foreach(_up_dumponexit, NULL);
|
||||
#endif
|
||||
|
||||
@@ -165,7 +165,7 @@ void _exit(int status)
|
||||
*/
|
||||
|
||||
tcb = this_task();
|
||||
sllinfo("New Active Task TCB=%p\n", tcb);
|
||||
sinfo("New Active Task TCB=%p\n", tcb);
|
||||
|
||||
#ifdef CONFIG_ARCH_ADDRENV
|
||||
/* Make sure that the address environment for the previously running
|
||||
|
||||
@@ -70,7 +70,7 @@ void up_release_pending(void)
|
||||
{
|
||||
FAR struct tcb_s *rtcb = this_task();
|
||||
|
||||
sllinfo("From TCB=%p\n", rtcb);
|
||||
sinfo("From TCB=%p\n", rtcb);
|
||||
|
||||
/* Merge the g_pendingtasks list into the ready-to-run task list */
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ void up_reprioritize_rtr(FAR struct tcb_s *tcb, uint8_t priority)
|
||||
FAR struct tcb_s *rtcb = this_task();
|
||||
bool switch_needed;
|
||||
|
||||
sllinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
sinfo("TCB=%p PRI=%d\n", tcb, priority);
|
||||
|
||||
/* Remove the tcb task from the ready-to-run list.
|
||||
* sched_removereadytorun will return true if we just
|
||||
|
||||
@@ -960,9 +960,9 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
|
||||
* handler and, therefore, may be suspended when debug output is generated!
|
||||
*/
|
||||
|
||||
nllinfo("txnext=%p {%06x, %u, %04x} trp=%02x%02x\n",
|
||||
priv->txnext, priv->txnext->np, priv->txnext->pktsize, priv->txnext->stat,
|
||||
inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L));
|
||||
ninfo("txnext=%p {%06x, %u, %04x} trp=%02x%02x\n",
|
||||
priv->txnext, priv->txnext->np, priv->txnext->pktsize, priv->txnext->stat,
|
||||
inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L));
|
||||
|
||||
/* Increment statistics */
|
||||
|
||||
@@ -1039,11 +1039,11 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
|
||||
outp(EZ80_EMAC_PTMR, EMAC_PTMR);
|
||||
leave_critical_section(flags);
|
||||
|
||||
nllinfo("txdesc=%p {%06x, %u, %04x}\n",
|
||||
txdesc, txdesc->np, txdesc->pktsize, txdesc->stat);
|
||||
nllinfo("txnext=%p {%06x, %u, %04x} trp=%02x%02x\n",
|
||||
txnext, txnext->np, txnext->pktsize, txnext->stat,
|
||||
inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L));
|
||||
ninfo("txdesc=%p {%06x, %u, %04x}\n",
|
||||
txdesc, txdesc->np, txdesc->pktsize, txdesc->stat);
|
||||
ninfo("txnext=%p {%06x, %u, %04x} trp=%02x%02x\n",
|
||||
txnext, txnext->np, txnext->pktsize, txnext->stat,
|
||||
inp(EZ80_EMAC_TRP_H), inp(EZ80_EMAC_TRP_L));
|
||||
|
||||
/* Setup the TX timeout watchdog (perhaps restarting the timer) */
|
||||
|
||||
@@ -1304,7 +1304,7 @@ static int ez80emac_receive(struct ez80emac_driver_s *priv)
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (ETHBUF->type == HTONS(ETHTYPE_IP))
|
||||
{
|
||||
nllinfo("IPv4 frame\n");
|
||||
ninfo("IPv4 frame\n");
|
||||
|
||||
/* Handle ARP on input then give the IPv4 packet to the network
|
||||
* layer
|
||||
@@ -1345,7 +1345,7 @@ static int ez80emac_receive(struct ez80emac_driver_s *priv)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (ETHBUF->type == HTONS(ETHTYPE_IP6))
|
||||
{
|
||||
nllinfo("Iv6 frame\n");
|
||||
ninfo("Iv6 frame\n");
|
||||
|
||||
/* Give the IPv6 packet to the network layer */
|
||||
|
||||
@@ -2200,7 +2200,7 @@ int up_netinitialize(void)
|
||||
ret = irq_attach(EZ80_EMACSYS_IRQ, ez80emac_sysinterrupt);
|
||||
if (ret < 0)
|
||||
{
|
||||
nllerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACSYS_IRQ);
|
||||
nerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACSYS_IRQ);
|
||||
ret = -EAGAIN;
|
||||
goto errout;
|
||||
}
|
||||
@@ -2208,7 +2208,7 @@ int up_netinitialize(void)
|
||||
ret = irq_attach(EZ80_EMACRX_IRQ, ez80emac_rxinterrupt);
|
||||
if (ret < 0)
|
||||
{
|
||||
nllerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACRX_IRQ);
|
||||
nerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACRX_IRQ);
|
||||
ret = -EAGAIN;
|
||||
goto errout;
|
||||
}
|
||||
@@ -2216,7 +2216,7 @@ int up_netinitialize(void)
|
||||
ret = irq_attach(EZ80_EMACTX_IRQ, ez80emac_txinterrupt);
|
||||
if (ret < 0)
|
||||
{
|
||||
nllerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACTX_IRQ);
|
||||
nerr("ERROR: Unable to attach IRQ %d\n", EZ80_EMACTX_IRQ);
|
||||
ret = -EAGAIN;
|
||||
goto errout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user