1 | Index: cpukit/libnetworking/libc/gethostbydns.c |
---|
2 | =================================================================== |
---|
3 | RCS file: /usr1/CVS/rtems/cpukit/libnetworking/libc/gethostbydns.c,v |
---|
4 | retrieving revision 1.5 |
---|
5 | diff -u -r1.5 gethostbydns.c |
---|
6 | --- cpukit/libnetworking/libc/gethostbydns.c 5 Mar 2004 18:02:41 -0000 1.5 |
---|
7 | +++ cpukit/libnetworking/libc/gethostbydns.c 2 Nov 2005 22:15:15 -0000 |
---|
8 | @@ -119,7 +119,7 @@ |
---|
9 | |
---|
10 | #ifdef DEBUG |
---|
11 | static void |
---|
12 | -dprintf(msg, num) |
---|
13 | +debugprintf(msg, num) |
---|
14 | char *msg; |
---|
15 | int num; |
---|
16 | { |
---|
17 | @@ -131,7 +131,7 @@ |
---|
18 | } |
---|
19 | } |
---|
20 | #else |
---|
21 | -# define dprintf(msg, num) /*nada*/ |
---|
22 | +#define debugprintf(msg, num) /*nada*/ |
---|
23 | #endif |
---|
24 | |
---|
25 | #define BOUNDED_INCR(x) \ |
---|
26 | @@ -393,13 +393,13 @@ |
---|
27 | bp += sizeof(align) - ((u_long)bp % sizeof(align)); |
---|
28 | |
---|
29 | if (bp + n >= &hostbuf[sizeof hostbuf]) { |
---|
30 | - dprintf("size (%d) too big\n", n); |
---|
31 | + debugprintf("size (%d) too big\n", n); |
---|
32 | had_error++; |
---|
33 | continue; |
---|
34 | } |
---|
35 | if (hap >= &h_addr_ptrs[MAXADDRS-1]) { |
---|
36 | if (!toobig++) |
---|
37 | - dprintf("Too many addresses (%d)\n", |
---|
38 | + debugprintf("Too many addresses (%d)\n", |
---|
39 | MAXADDRS); |
---|
40 | cp += n; |
---|
41 | continue; |
---|
42 | @@ -414,7 +414,7 @@ |
---|
43 | } |
---|
44 | break; |
---|
45 | default: |
---|
46 | - dprintf("Impossible condition (type=%d)\n", type); |
---|
47 | + debugprintf("Impossible condition (type=%d)\n", type); |
---|
48 | h_errno = NO_RECOVERY; |
---|
49 | return (NULL); |
---|
50 | /* BIND has abort() here, too risky on bad data */ |
---|
51 | @@ -585,7 +585,7 @@ |
---|
52 | } |
---|
53 | |
---|
54 | if ((n = res_search(name, C_IN, type, buf.buf, sizeof(buf))) < 0) { |
---|
55 | - dprintf("res_search failed (%d)\n", n); |
---|
56 | + debugprintf("res_search failed (%d)\n", n); |
---|
57 | return (NULL); |
---|
58 | } |
---|
59 | return (gethostanswer(&buf, n, name, type)); |
---|
60 | @@ -662,7 +662,7 @@ |
---|
61 | } |
---|
62 | n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf); |
---|
63 | if (n < 0) { |
---|
64 | - dprintf("res_query failed (%d)\n", n); |
---|
65 | + debugprintf("res_query failed (%d)\n", n); |
---|
66 | return (NULL); |
---|
67 | } |
---|
68 | if (!(hp = gethostanswer(&buf, n, qbuf, T_PTR))) |
---|