mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
@@ -185,7 +185,7 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev,
|
||||
{
|
||||
struct tcp_connect_s *pstate = (struct tcp_connect_s *)pvpriv;
|
||||
|
||||
nllvdbg("flags: %04x\n", flags);
|
||||
nllinfo("flags: %04x\n", flags);
|
||||
|
||||
/* 'priv' might be null in some race conditions (?) */
|
||||
|
||||
@@ -261,7 +261,7 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev,
|
||||
return flags & ~TCP_NEWDATA;
|
||||
}
|
||||
|
||||
nllvdbg("Resuming: %d\n", pstate->tc_result);
|
||||
nllinfo("Resuming: %d\n", pstate->tc_result);
|
||||
|
||||
/* Stop further callbacks */
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ int net_checksd(int sd, int oflags)
|
||||
|
||||
if (!psock || psock->s_crefs <= 0)
|
||||
{
|
||||
nvdbg("No valid socket for sd: %d\n", sd);
|
||||
ninfo("No valid socket for sd: %d\n", sd);
|
||||
return -EBADF;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ static uint16_t netclose_interrupt(FAR struct net_driver_s *dev,
|
||||
|
||||
DEBUGASSERT(conn != NULL);
|
||||
|
||||
nllvdbg("conn: %p flags: %04x\n", conn, flags);
|
||||
nllinfo("conn: %p flags: %04x\n", conn, flags);
|
||||
|
||||
/* TCP_DISCONN_EVENTS:
|
||||
* TCP_CLOSE: The remote host has closed the connection
|
||||
@@ -250,7 +250,7 @@ end_wait:
|
||||
pstate->cl_cb->event = NULL;
|
||||
sem_post(&pstate->cl_sem);
|
||||
|
||||
nllvdbg("Resuming\n");
|
||||
nllinfo("Resuming\n");
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ static uint16_t connection_event(FAR struct net_driver_s *dev,
|
||||
|
||||
if (psock)
|
||||
{
|
||||
nllvdbg("flags: %04x s_flags: %02x\n", flags, psock->s_flags);
|
||||
nllinfo("flags: %04x s_flags: %02x\n", flags, psock->s_flags);
|
||||
|
||||
/* TCP_DISCONN_EVENTS: TCP_CLOSE, TCP_ABORT, TCP_TIMEDOUT, or
|
||||
* NETDEV_DOWN. All loss-of-connection events.
|
||||
|
||||
@@ -156,7 +156,7 @@ static uint16_t ack_interrupt(FAR struct net_driver_s *dev, FAR void *pvconn,
|
||||
{
|
||||
FAR struct sendfile_s *pstate = (FAR struct sendfile_s *)pvpriv;
|
||||
|
||||
nllvdbg("flags: %04x\n", flags);
|
||||
nllinfo("flags: %04x\n", flags);
|
||||
|
||||
if ((flags & TCP_ACKDATA) != 0)
|
||||
{
|
||||
@@ -197,7 +197,7 @@ static uint16_t ack_interrupt(FAR struct net_driver_s *dev, FAR void *pvconn,
|
||||
*/
|
||||
|
||||
pstate->snd_acked = tcp_getsequence(tcp->ackno) - pstate->snd_isn;
|
||||
nllvdbg("ACK: acked=%d sent=%d flen=%d\n",
|
||||
nllinfo("ACK: acked=%d sent=%d flen=%d\n",
|
||||
pstate->snd_acked, pstate->snd_sent, pstate->snd_flen);
|
||||
|
||||
dev->d_sndlen = 0;
|
||||
@@ -336,7 +336,7 @@ static uint16_t sendfile_interrupt(FAR struct net_driver_s *dev, FAR void *pvcon
|
||||
}
|
||||
#endif
|
||||
|
||||
nllvdbg("flags: %04x acked: %d sent: %d\n",
|
||||
nllinfo("flags: %04x acked: %d sent: %d\n",
|
||||
flags, pstate->snd_acked, pstate->snd_sent);
|
||||
|
||||
/* Check for a loss of connection */
|
||||
@@ -410,7 +410,7 @@ static uint16_t sendfile_interrupt(FAR struct net_driver_s *dev, FAR void *pvcon
|
||||
*/
|
||||
|
||||
seqno = pstate->snd_sent + pstate->snd_isn;
|
||||
nllvdbg("SEND: sndseq %08x->%08x len: %d\n", conn->sndseq, seqno, ret);
|
||||
nllinfo("SEND: sndseq %08x->%08x len: %d\n", conn->sndseq, seqno, ret);
|
||||
|
||||
tcp_setsequence(conn->sndseq, seqno);
|
||||
|
||||
@@ -424,7 +424,7 @@ static uint16_t sendfile_interrupt(FAR struct net_driver_s *dev, FAR void *pvcon
|
||||
/* Update the amount of data sent (but not necessarily ACKed) */
|
||||
|
||||
pstate->snd_sent += sndlen;
|
||||
nllvdbg("pid: %d SEND: acked=%d sent=%d flen=%d\n", getpid(),
|
||||
nllinfo("pid: %d SEND: acked=%d sent=%d flen=%d\n", getpid(),
|
||||
pstate->snd_acked, pstate->snd_sent, pstate->snd_flen);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ int net_vfcntl(int sockfd, int cmd, va_list ap)
|
||||
int err = 0;
|
||||
int ret = 0;
|
||||
|
||||
nvdbg("sockfd=%d cmd=%d\n", sockfd, cmd);
|
||||
ninfo("sockfd=%d cmd=%d\n", sockfd, cmd);
|
||||
|
||||
/* Verify that the sockfd corresponds to valid, allocated socket */
|
||||
|
||||
|
||||
+13
-13
@@ -181,7 +181,7 @@ static size_t recvfrom_newdata(FAR struct net_driver_s *dev,
|
||||
/* Copy the new appdata into the user buffer */
|
||||
|
||||
memcpy(pstate->rf_buffer, dev->d_appdata, recvlen);
|
||||
nllvdbg("Received %d bytes (of %d)\n", (int)recvlen, (int)dev->d_len);
|
||||
nllinfo("Received %d bytes (of %d)\n", (int)recvlen, (int)dev->d_len);
|
||||
|
||||
/* Update the accumulated size of the data read */
|
||||
|
||||
@@ -227,7 +227,7 @@ static void recvfrom_newpktdata(FAR struct net_driver_s *dev,
|
||||
/* Copy the new packet data into the user buffer */
|
||||
|
||||
memcpy(pstate->rf_buffer, dev->d_buf, recvlen);
|
||||
nllvdbg("Received %d bytes (of %d)\n", (int)recvlen, (int)dev->d_len);
|
||||
nllinfo("Received %d bytes (of %d)\n", (int)recvlen, (int)dev->d_len);
|
||||
|
||||
/* Update the accumulated size of the data read */
|
||||
|
||||
@@ -378,7 +378,7 @@ static inline void recvfrom_tcpreadahead(struct recvfrom_s *pstate)
|
||||
*/
|
||||
|
||||
recvlen = iob_copyout(pstate->rf_buffer, iob, pstate->rf_buflen, 0);
|
||||
nllvdbg("Received %d bytes (of %d)\n", recvlen, iob->io_pktlen);
|
||||
nllinfo("Received %d bytes (of %d)\n", recvlen, iob->io_pktlen);
|
||||
|
||||
/* Update the accumulated size of the data read */
|
||||
|
||||
@@ -478,7 +478,7 @@ static inline void recvfrom_udpreadahead(struct recvfrom_s *pstate)
|
||||
recvlen = iob_copyout(pstate->rf_buffer, iob, pstate->rf_buflen,
|
||||
src_addr_size + sizeof(uint8_t));
|
||||
|
||||
nllvdbg("Received %d bytes (of %d)\n", recvlen, iob->io_pktlen);
|
||||
nllinfo("Received %d bytes (of %d)\n", recvlen, iob->io_pktlen);
|
||||
|
||||
/* Update the accumulated size of the data read */
|
||||
|
||||
@@ -621,7 +621,7 @@ static uint16_t recvfrom_pktinterrupt(FAR struct net_driver_s *dev,
|
||||
{
|
||||
struct recvfrom_s *pstate = (struct recvfrom_s *)pvpriv;
|
||||
|
||||
nllvdbg("flags: %04x\n", flags);
|
||||
nllinfo("flags: %04x\n", flags);
|
||||
|
||||
/* 'priv' might be null in some race conditions (?) */
|
||||
|
||||
@@ -636,7 +636,7 @@ static uint16_t recvfrom_pktinterrupt(FAR struct net_driver_s *dev,
|
||||
|
||||
/* We are finished. */
|
||||
|
||||
nllvdbg("PKT done\n");
|
||||
nllinfo("PKT done\n");
|
||||
|
||||
/* Don't allow any further call backs. */
|
||||
|
||||
@@ -778,7 +778,7 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
nllvdbg("flags: %04x\n", flags);
|
||||
nllinfo("flags: %04x\n", flags);
|
||||
|
||||
/* 'priv' might be null in some race conditions (?) */
|
||||
|
||||
@@ -827,7 +827,7 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
|
||||
if (pstate->rf_recvlen > 0)
|
||||
#endif
|
||||
{
|
||||
nllvdbg("TCP resume\n");
|
||||
nllinfo("TCP resume\n");
|
||||
|
||||
/* The TCP receive buffer is full. Return now and don't allow
|
||||
* any further TCP call backs.
|
||||
@@ -864,7 +864,7 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
|
||||
|
||||
else if ((flags & TCP_DISCONN_EVENTS) != 0)
|
||||
{
|
||||
nllvdbg("Lost connection\n");
|
||||
nllinfo("Lost connection\n");
|
||||
|
||||
/* Stop further callbacks */
|
||||
|
||||
@@ -924,7 +924,7 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
|
||||
* callbacks
|
||||
*/
|
||||
|
||||
nllvdbg("TCP timeout\n");
|
||||
nllinfo("TCP timeout\n");
|
||||
|
||||
pstate->rf_cb->flags = 0;
|
||||
pstate->rf_cb->priv = NULL;
|
||||
@@ -1122,7 +1122,7 @@ static uint16_t recvfrom_udp_interrupt(FAR struct net_driver_s *dev,
|
||||
{
|
||||
FAR struct recvfrom_s *pstate = (FAR struct recvfrom_s *)pvpriv;
|
||||
|
||||
nllvdbg("flags: %04x\n", flags);
|
||||
nllinfo("flags: %04x\n", flags);
|
||||
|
||||
/* 'priv' might be null in some race conditions (?) */
|
||||
|
||||
@@ -1150,7 +1150,7 @@ static uint16_t recvfrom_udp_interrupt(FAR struct net_driver_s *dev,
|
||||
|
||||
/* We are finished. */
|
||||
|
||||
nllvdbg("UDP done\n");
|
||||
nllinfo("UDP done\n");
|
||||
|
||||
/* Save the sender's address in the caller's 'from' location */
|
||||
|
||||
@@ -1176,7 +1176,7 @@ static uint16_t recvfrom_udp_interrupt(FAR struct net_driver_s *dev,
|
||||
* callbacks
|
||||
*/
|
||||
|
||||
nllvdbg("ERROR: UDP timeout\n");
|
||||
nllinfo("ERROR: UDP timeout\n");
|
||||
|
||||
/* Terminate the transfer with an -EAGAIN error */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user