mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
Fix debug statements in resolver
This commit is contained in:
committed by
Ulrich Drepper
parent
12e6ee86c4
commit
94308fd0e0
@@ -1,3 +1,9 @@
|
|||||||
|
2010-03-16 Andreas Schwab <schwab@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_send.c (__libc_res_nsend): Fix printing of server
|
||||||
|
address in debug statement.
|
||||||
|
(send_dg): Pass correct buffer pointer to DprintQ.
|
||||||
|
|
||||||
2010-03-17 Ulrich Drepper <drepper@redhat.com>
|
2010-03-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* libc-abis: Add a few more entries.
|
* libc-abis: Add a few more entries.
|
||||||
|
@@ -535,7 +535,10 @@ __libc_res_nsend(res_state statp, const u_char *buf, int buflen,
|
|||||||
|
|
||||||
Dprint(statp->options & RES_DEBUG,
|
Dprint(statp->options & RES_DEBUG,
|
||||||
(stdout, ";; Querying server (# %d) address = %s\n",
|
(stdout, ";; Querying server (# %d) address = %s\n",
|
||||||
ns + 1, inet_ntop(AF_INET6, &nsap->sin6_addr,
|
ns + 1, inet_ntop(nsap->sin6_family,
|
||||||
|
(nsap->sin6_family == AF_INET6
|
||||||
|
? &nsap->sin6_addr
|
||||||
|
: &((struct sockaddr_in *) nsap)->sin_addr),
|
||||||
tmpbuf, sizeof (tmpbuf))));
|
tmpbuf, sizeof (tmpbuf))));
|
||||||
|
|
||||||
if (__builtin_expect (v_circuit, 0)) {
|
if (__builtin_expect (v_circuit, 0)) {
|
||||||
@@ -1201,7 +1204,7 @@ send_dg(res_state statp,
|
|||||||
DprintQ((statp->options & RES_DEBUG) ||
|
DprintQ((statp->options & RES_DEBUG) ||
|
||||||
(statp->pfcode & RES_PRF_REPLY),
|
(statp->pfcode & RES_PRF_REPLY),
|
||||||
(stdout, ";; old answer:\n"),
|
(stdout, ";; old answer:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
goto wait;
|
goto wait;
|
||||||
@@ -1216,7 +1219,7 @@ send_dg(res_state statp,
|
|||||||
DprintQ((statp->options & RES_DEBUG) ||
|
DprintQ((statp->options & RES_DEBUG) ||
|
||||||
(statp->pfcode & RES_PRF_REPLY),
|
(statp->pfcode & RES_PRF_REPLY),
|
||||||
(stdout, ";; not our server:\n"),
|
(stdout, ";; not our server:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
goto wait;
|
goto wait;
|
||||||
@@ -1233,7 +1236,7 @@ send_dg(res_state statp,
|
|||||||
DprintQ(statp->options & RES_DEBUG,
|
DprintQ(statp->options & RES_DEBUG,
|
||||||
(stdout,
|
(stdout,
|
||||||
"server rejected query with EDNS0:\n"),
|
"server rejected query with EDNS0:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
/* record the error */
|
/* record the error */
|
||||||
@@ -1258,7 +1261,7 @@ send_dg(res_state statp,
|
|||||||
DprintQ((statp->options & RES_DEBUG) ||
|
DprintQ((statp->options & RES_DEBUG) ||
|
||||||
(statp->pfcode & RES_PRF_REPLY),
|
(statp->pfcode & RES_PRF_REPLY),
|
||||||
(stdout, ";; wrong query name:\n"),
|
(stdout, ";; wrong query name:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
goto wait;
|
goto wait;
|
||||||
@@ -1268,7 +1271,7 @@ send_dg(res_state statp,
|
|||||||
anhp->rcode == REFUSED) {
|
anhp->rcode == REFUSED) {
|
||||||
DprintQ(statp->options & RES_DEBUG,
|
DprintQ(statp->options & RES_DEBUG,
|
||||||
(stdout, "server rejected query:\n"),
|
(stdout, "server rejected query:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
|
|
||||||
@@ -1295,7 +1298,7 @@ send_dg(res_state statp,
|
|||||||
&& anhp->aa == 0 && anhp->ra == 0 && anhp->arcount == 0) {
|
&& anhp->aa == 0 && anhp->ra == 0 && anhp->arcount == 0) {
|
||||||
DprintQ(statp->options & RES_DEBUG,
|
DprintQ(statp->options & RES_DEBUG,
|
||||||
(stdout, "referred query:\n"),
|
(stdout, "referred query:\n"),
|
||||||
thisansp,
|
*thisansp,
|
||||||
(*thisresplenp > *thisanssizp)
|
(*thisresplenp > *thisanssizp)
|
||||||
? *thisanssizp : *thisresplenp);
|
? *thisanssizp : *thisresplenp);
|
||||||
goto next_ns;
|
goto next_ns;
|
||||||
|
Reference in New Issue
Block a user