mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
@@ -174,7 +174,7 @@ void apb_free(FAR struct ap_buffer_s *apb)
|
||||
|
||||
if (refcount <= 1)
|
||||
{
|
||||
audvdbg("Freeing %p\n", apb);
|
||||
audinfo("Freeing %p\n", apb);
|
||||
lib_ufree(apb);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -65,7 +65,7 @@
|
||||
"lio_listio","aio.h","defined(CONFIG_FS_AIO)","int","int","FAR struct aiocb *const []|FAR struct aiocb *const *","int","FAR struct sigevent *"
|
||||
"llabs","stdlib.h","defined(CONFIG_HAVE_LONG_LONG)","long long int","long long int"
|
||||
"lldbg","debug.h","!defined(CONFIG_CPP_HAVE_VARARGS) && defined(CONFIG_DEBUG) && defined(CONFIG_ARCH_LOWPUTC)","int","const char *","..."
|
||||
"llvdbg","debug.h","!defined(CONFIG_CPP_HAVE_VARARGS) && defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_INFO) && defined(CONFIG_ARCH_LOWPUTC)","int","const char *","..."
|
||||
"llinfo","debug.h","!defined(CONFIG_CPP_HAVE_VARARGS) && defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_INFO) && defined(CONFIG_ARCH_LOWPUTC)","int","const char *","..."
|
||||
"lowsyslog","syslog.h","","int","int","FAR const char *","..."
|
||||
"lowvsyslog","syslog.h","","int","int","FAR const char *","va_list"
|
||||
"match","nuttx/regex.h","","int","const char *","const char *"
|
||||
@@ -168,7 +168,7 @@
|
||||
"ub16sqr","fixedmath.h","!defined(CONFIG_HAVE_LONG_LONG)","ub16_t","ub16_t"
|
||||
"ungetc","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","int","int","FAR FILE *"
|
||||
"usleep","unistd.h","!defined(CONFIG_DISABLE_SIGNALS)","int","int","FAR FILE *"
|
||||
"vdbg","debug.h","!defined(CONFIG_CPP_HAVE_VARARGS) && defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_INFO)","int","const char *","..."
|
||||
"info","debug.h","!defined(CONFIG_CPP_HAVE_VARARGS) && defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_INFO)","int","const char *","..."
|
||||
"vfprintf","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","int","FAR FILE *","const char *","va_list"
|
||||
"vprintf","stdio.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","int","FAR const char *","va_list"
|
||||
"vsnprintf","stdio.h","","int","FAR char *","size_t","const char *","va_list"
|
||||
|
||||
|
+3
-3
@@ -55,7 +55,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dbg, lldbg, vdbg
|
||||
* Name: dbg, lldbg, info
|
||||
*
|
||||
* Description:
|
||||
* If the cross-compiler's pre-processor does not support variable
|
||||
@@ -91,7 +91,7 @@ int lldbg(const char *format, ...)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
int vdbg(const char *format, ...)
|
||||
int info(const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int ret;
|
||||
@@ -104,7 +104,7 @@ int vdbg(const char *format, ...)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_LOWPUTC
|
||||
int llvdbg(const char *format, ...)
|
||||
int llinfo(const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int ret;
|
||||
|
||||
@@ -93,10 +93,10 @@
|
||||
|
||||
#ifdef CONFIG_DEBUG_LCD
|
||||
# define lcddbg dbg
|
||||
# define lcdvdbg vdbg
|
||||
# define lcdinfo info
|
||||
#else
|
||||
# define lcddbg(x...)
|
||||
# define lcdvdbg(x...)
|
||||
# define lcdinfo(x...)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -161,7 +161,7 @@ int dns_add_nameserver(FAR const struct sockaddr *addr, socklen_t addrlen)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nvdbg("ERROR: Unsupported family: %d\n",
|
||||
ninfo("ERROR: Unsupported family: %d\n",
|
||||
g_dns_server.addr.sa_family);
|
||||
ret = -ENOSYS;
|
||||
goto errout;
|
||||
@@ -242,7 +242,7 @@ int dns_add_nameserver(FAR const struct sockaddr *addr, socklen_t addrlen)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nvdbg("ERROR: Unsupported family: %d\n", addr->sa_family);
|
||||
ninfo("ERROR: Unsupported family: %d\n", addr->sa_family);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ int dns_add_nameserver(FAR const struct sockaddr *addr, socklen_t addrlen)
|
||||
|
||||
if (addrlen < copylen)
|
||||
{
|
||||
nvdbg("ERROR: Invalid addrlen %ld for family %d\n",
|
||||
ninfo("ERROR: Invalid addrlen %ld for family %d\n",
|
||||
(long)addrlen, addr->sa_family);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ int dns_foreach_nameserver(dns_callback_t callback, FAR void *arg)
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nvdbg("ERROR: Unsupported family: %d\n",
|
||||
ninfo("ERROR: Unsupported family: %d\n",
|
||||
g_dns_server.addr.sa_family);
|
||||
ret = -ENOSYS;
|
||||
}
|
||||
|
||||
@@ -254,10 +254,10 @@ static int dns_recv_response(int sd, FAR struct sockaddr *addr,
|
||||
|
||||
hdr = (FAR struct dns_header_s *)buffer;
|
||||
|
||||
nvdbg("ID %d\n", htons(hdr->id));
|
||||
nvdbg("Query %d\n", hdr->flags1 & DNS_FLAG1_RESPONSE);
|
||||
nvdbg("Error %d\n", hdr->flags2 & DNS_FLAG2_ERR_MASK);
|
||||
nvdbg("Num questions %d, answers %d, authrr %d, extrarr %d\n",
|
||||
ninfo("ID %d\n", htons(hdr->id));
|
||||
ninfo("Query %d\n", hdr->flags1 & DNS_FLAG1_RESPONSE);
|
||||
ninfo("Error %d\n", hdr->flags2 & DNS_FLAG2_ERR_MASK);
|
||||
ninfo("Num questions %d, answers %d, authrr %d, extrarr %d\n",
|
||||
htons(hdr->numquestions), htons(hdr->numanswers),
|
||||
htons(hdr->numauthrr), htons(hdr->numextrarr));
|
||||
|
||||
@@ -317,7 +317,7 @@ static int dns_recv_response(int sd, FAR struct sockaddr *addr,
|
||||
/* Compressed name. */
|
||||
|
||||
nameptr += 2;
|
||||
nvdbg("Compressed answer\n");
|
||||
ninfo("Compressed answer\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -328,7 +328,7 @@ static int dns_recv_response(int sd, FAR struct sockaddr *addr,
|
||||
|
||||
ans = (FAR struct dns_answer_s *)nameptr;
|
||||
|
||||
nvdbg("Answer: type=%04x, class=%04x, ttl=%06x, length=%04x \n",
|
||||
ninfo("Answer: type=%04x, class=%04x, ttl=%06x, length=%04x \n",
|
||||
htons(ans->type), htons(ans->class),
|
||||
(htons(ans->ttl[0]) << 16) | htons(ans->ttl[1]),
|
||||
htons(ans->len));
|
||||
@@ -342,7 +342,7 @@ static int dns_recv_response(int sd, FAR struct sockaddr *addr,
|
||||
{
|
||||
ans->u.ipv4.s_addr = *(FAR uint32_t *)(nameptr + 10);
|
||||
|
||||
nvdbg("IPv4 address: %d.%d.%d.%d\n",
|
||||
ninfo("IPv4 address: %d.%d.%d.%d\n",
|
||||
(ans->u.ipv4.s_addr ) & 0xff,
|
||||
(ans->u.ipv4.s_addr >> 8 ) & 0xff,
|
||||
(ans->u.ipv4.s_addr >> 16) & 0xff,
|
||||
@@ -374,7 +374,7 @@ static int dns_recv_response(int sd, FAR struct sockaddr *addr,
|
||||
{
|
||||
memcpy(&ans->u.ipv6.s6_addr, nameptr + 10, 16);
|
||||
|
||||
nvdbg("IPv6 address: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||
ninfo("IPv6 address: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||
htons(ans->u.ipv6.s6_addr[7]), htons(ans->u.ipv6.s6_addr[6]),
|
||||
htons(ans->u.ipv6.s6_addr[5]), htons(ans->u.ipv6.s6_addr[4]),
|
||||
htons(ans->u.ipv6.s6_addr[3]), htons(ans->u.ipv6.s6_addr[2]),
|
||||
|
||||
@@ -309,7 +309,7 @@ int lib_hostfile_lookup(FAR const void *addr, socklen_t len, int type,
|
||||
FAR char *hostaddr = host->h_addr;
|
||||
if (hostaddr != NULL)
|
||||
{
|
||||
nvdbg("Comparing addresses...\n");
|
||||
ninfo("Comparing addresses...\n");
|
||||
if (memcmp(addr, hostaddr, len) == 0)
|
||||
{
|
||||
/* We have a match */
|
||||
|
||||
@@ -622,7 +622,7 @@ static int lib_hostfile_lookup(FAR const char *name, FAR struct hostent *host,
|
||||
{
|
||||
/* We successfully read the entry */
|
||||
|
||||
nvdbg("Comparing %s to %s\n", name, host->h_name);
|
||||
ninfo("Comparing %s to %s\n", name, host->h_name);
|
||||
|
||||
/* Check for a host name match */
|
||||
|
||||
|
||||
+14
-14
@@ -193,7 +193,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
int base = 10;
|
||||
char tmp[MAXLN];
|
||||
|
||||
lvdbg("vsscanf: buf=\"%s\" fmt=\"%s\"\n", buf, fmt);
|
||||
linfo("vsscanf: buf=\"%s\" fmt=\"%s\"\n", buf, fmt);
|
||||
|
||||
/* Remember the start of the input buffer. We will need this for %n
|
||||
* calculations.
|
||||
@@ -226,14 +226,14 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
|
||||
if (*fmt == '%')
|
||||
{
|
||||
lvdbg("vsscanf: Specifier found\n");
|
||||
linfo("vsscanf: Specifier found\n");
|
||||
|
||||
/* Check for qualifiers on the conversion specifier */
|
||||
|
||||
fmt++;
|
||||
for (; *fmt; fmt++)
|
||||
{
|
||||
lvdbg("vsscanf: Processing %c\n", *fmt);
|
||||
linfo("vsscanf: Processing %c\n", *fmt);
|
||||
|
||||
if (strchr("dibouxcsefgn%", *fmt))
|
||||
{
|
||||
@@ -264,7 +264,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
|
||||
if (*fmt == 's')
|
||||
{
|
||||
lvdbg("vsscanf: Performing string conversion\n");
|
||||
linfo("vsscanf: Performing string conversion\n");
|
||||
|
||||
/* Get a pointer to the char * value. We need to do this even
|
||||
* if we have reached the end of the input data in order to
|
||||
@@ -320,7 +320,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
|
||||
else if (*fmt == 'c')
|
||||
{
|
||||
lvdbg("vsscanf: Performing character conversion\n");
|
||||
linfo("vsscanf: Performing character conversion\n");
|
||||
|
||||
/* Get a pointer to the char * value. We need to do this even
|
||||
* if we have reached the end of the input data in order to
|
||||
@@ -374,7 +374,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
FAR int *pint = NULL;
|
||||
bool sign;
|
||||
|
||||
lvdbg("vsscanf: Performing integer conversion\n");
|
||||
linfo("vsscanf: Performing integer conversion\n");
|
||||
|
||||
/* Get a pointer to the integer value. We need to do this even
|
||||
* if we have reached the end of the input data in order to
|
||||
@@ -461,7 +461,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
strncpy(tmp, buf, width);
|
||||
tmp[width] = '\0';
|
||||
|
||||
lvdbg("vsscanf: tmp[]=\"%s\"\n", tmp);
|
||||
linfo("vsscanf: tmp[]=\"%s\"\n", tmp);
|
||||
|
||||
/* Perform the integer conversion */
|
||||
/* Preserve the errno value */
|
||||
@@ -497,13 +497,13 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
|
||||
if (lflag)
|
||||
{
|
||||
lvdbg("vsscanf: Return %ld to 0x%p\n",
|
||||
linfo("vsscanf: Return %ld to 0x%p\n",
|
||||
tmplong, plong);
|
||||
*plong = tmplong;
|
||||
}
|
||||
else
|
||||
{
|
||||
lvdbg("vsscanf: Return %ld to 0x%p\n",
|
||||
linfo("vsscanf: Return %ld to 0x%p\n",
|
||||
tmplong, pint);
|
||||
*pint = (int)tmplong;
|
||||
}
|
||||
@@ -524,7 +524,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
#endif
|
||||
FAR float *pf = NULL;
|
||||
|
||||
lvdbg("vsscanf: Performing floating point conversion\n");
|
||||
linfo("vsscanf: Performing floating point conversion\n");
|
||||
|
||||
/* Get a pointer to the double value. We need to do this even
|
||||
* if we have reached the end of the input data in order to
|
||||
@@ -580,7 +580,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
tmp[width] = '\0';
|
||||
buf += width;
|
||||
|
||||
lvdbg("vsscanf: tmp[]=\"%s\"\n", tmp);
|
||||
linfo("vsscanf: tmp[]=\"%s\"\n", tmp);
|
||||
|
||||
/* Perform the floating point conversion */
|
||||
|
||||
@@ -614,13 +614,13 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
#ifdef CONFIG_HAVE_DOUBLE
|
||||
if (lflag)
|
||||
{
|
||||
lvdbg("vsscanf: Return %f to %p\n", dvalue, pd);
|
||||
linfo("vsscanf: Return %f to %p\n", dvalue, pd);
|
||||
*pd = dvalue;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
lvdbg("vsscanf: Return %f to %p\n", dvalue, pf);
|
||||
linfo("vsscanf: Return %f to %p\n", dvalue, pf);
|
||||
*pf = (float)dvalue;
|
||||
}
|
||||
|
||||
@@ -634,7 +634,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
|
||||
else if (*fmt == 'n')
|
||||
{
|
||||
lvdbg("vsscanf: Performing character count\n");
|
||||
linfo("vsscanf: Performing character count\n");
|
||||
|
||||
if (!noassign)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user