diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-14 14:11:47 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-14 14:11:47 +0000 |
commit | 71afe05b9fd9b5bc4a9f8176df8c0a7f867ab748 (patch) | |
tree | 46bb2151a3df17ffdb8570eed3fda8c505f3a08b /ares | |
parent | 5a267c43121761a3fe548b96abf0832cbd10901f (diff) |
in debug messages also show error description
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c index 5cbb49f03..1ca835e6d 100644 --- a/ares/ares_init.c +++ b/ares/ares_init.c @@ -640,8 +640,9 @@ DhcpNameServer status = ARES_EOF; break; default: + DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", + errno, strerror(errno))); DEBUGF(fprintf(stderr, "Error opening file: %s\n", PATH_RESOLV_CONF)); - DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno)); status = ARES_EFILE; } } @@ -663,8 +664,9 @@ DhcpNameServer status = ARES_EOF; break; default: + DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", + errno, strerror(errno))); DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/nsswitch.conf")); - DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno)); status = ARES_EFILE; } } @@ -687,8 +689,9 @@ DhcpNameServer status = ARES_EOF; break; default: + DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n" + errno, strerror(errno))); DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/host.conf")); - DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno)); status = ARES_EFILE; } } @@ -711,8 +714,9 @@ DhcpNameServer status = ARES_EOF; break; default: + DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", + errno, strerror(errno))); DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/svc.conf")); - DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno)); status = ARES_EFILE; } } |