Skip to content

Commit

Permalink
Revert "Remove some error prints"
Browse files Browse the repository at this point in the history
This reverts commit e998049.
  • Loading branch information
jpaali committed Dec 18, 2024
1 parent b87ac6e commit 9babbd5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions arch/risc-v/src/mpfs/mpfs_ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ static void mpfs_interrupt_work(void *arg)
if ((rsr & RECEIVE_STATUS_BUFFER_NOT_AVAILABLE) != 0)
{
++rx_error;
// nerr("ERROR: Buffer not available RSR: %08" PRIx32 "\n", rsr);
nerr("ERROR: Buffer not available RSR: %08" PRIx32 "\n", rsr);
}

/* Check for HRESP not OK */
Expand All @@ -1112,7 +1112,7 @@ static void mpfs_interrupt_work(void *arg)

if (rx_error != 0)
{
// nerr("RX ERROR: reset\n");
nerr("RX ERROR: reset\n");
mpfs_rxreset(priv);
*priv->queue[queue].int_status = 0xffffffff;
mac_putreg(priv, RECEIVE_STATUS, 0xffffffff);
Expand Down
4 changes: 0 additions & 4 deletions drivers/net/ksz9477.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ int ksz9477_init(ksz9477_port_t master_port)
uint32_t regval32;
uint16_t backup;

nerr("Initializing..\n");

/* Read the ID registers */

ret = ksz9477_reg_read16(KSZ9477_ID1, &regval16);
Expand Down Expand Up @@ -834,7 +832,5 @@ int ksz9477_init(ksz9477_port_t master_port)

#endif

nerr("Init done, ret %d\n", ret);

return ret;
}
2 changes: 0 additions & 2 deletions net/arp/arp_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,9 @@ int arp_send(in_addr_t ipaddr)
/* Increment the retry count */

state.snd_retries++;
/*
nerr("ERROR: arp_wait failed: %d, ipaddr: %u.%u.%u.%u\n", ret,
ip4_addr1(ipaddr), ip4_addr2(ipaddr),
ip4_addr3(ipaddr), ip4_addr4(ipaddr));
*/
}

nxsem_destroy(&state.snd_sem);
Expand Down
2 changes: 1 addition & 1 deletion net/udp/udp_sendto_unbuffered.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ ssize_t psock_udp_sendto(FAR struct socket *psock, FAR const void *buf,

if (ret < 0)
{
// nerr("ERROR: Peer not reachable\n");
nerr("ERROR: Peer not reachable\n");
return -ENETUNREACH;
}
#endif /* CONFIG_NET_ARP_SEND || CONFIG_NET_ICMPv6_NEIGHBOR */
Expand Down

0 comments on commit 9babbd5

Please sign in to comment.