Changeset 24cf3e5 in rtems
- Timestamp:
- Nov 2, 2005, 10:24:12 PM (15 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 408bb71
- Parents:
- b14d8579
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
rb14d8579 r24cf3e5 1 2005-11-02 Fredic Praca <freebsd-fr.org> 2 3 PR 842/networking 4 * libnetworking/libc/gethostbydns.c: Avoid use of dprintf(). Rename 5 dprintf to debugprintf(). 6 1 7 2005-11-02 Ralf Corsepius <ralf.corsepius@rtems.org> 2 8 -
cpukit/libnetworking/libc/gethostbydns.c
rb14d8579 r24cf3e5 120 120 #ifdef DEBUG 121 121 static void 122 d printf(msg, num)122 debugprintf(msg, num) 123 123 char *msg; 124 124 int num; … … 132 132 } 133 133 #else 134 # define dprintf(msg, num) /*nada*/134 #define debugprintf(msg, num) /*nada*/ 135 135 #endif 136 136 … … 394 394 395 395 if (bp + n >= &hostbuf[sizeof hostbuf]) { 396 d printf("size (%d) too big\n", n);396 debugprintf("size (%d) too big\n", n); 397 397 had_error++; 398 398 continue; … … 400 400 if (hap >= &h_addr_ptrs[MAXADDRS-1]) { 401 401 if (!toobig++) 402 d printf("Too many addresses (%d)\n",402 debugprintf("Too many addresses (%d)\n", 403 403 MAXADDRS); 404 404 cp += n; … … 415 415 break; 416 416 default: 417 d printf("Impossible condition (type=%d)\n", type);417 debugprintf("Impossible condition (type=%d)\n", type); 418 418 h_errno = NO_RECOVERY; 419 419 return (NULL); … … 586 586 587 587 if ((n = res_search(name, C_IN, type, buf.buf, sizeof(buf))) < 0) { 588 d printf("res_search failed (%d)\n", n);588 debugprintf("res_search failed (%d)\n", n); 589 589 return (NULL); 590 590 } … … 663 663 n = res_query(qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf); 664 664 if (n < 0) { 665 d printf("res_query failed (%d)\n", n);665 debugprintf("res_query failed (%d)\n", n); 666 666 return (NULL); 667 667 }
Note: See TracChangeset
for help on using the changeset viewer.