diff options
| author | Rinku Kothiya <rkothiya@redhat.com> | 2016-01-16 12:19:40 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2016-01-16 12:30:13 -0500 |
| commit | 612581573ba104404b86242ca35c2ff35abd5e72 (patch) | |
| tree | 224430997f459dd4479f1307e11621d9309435f9 | |
| parent | d92017cccaffb02f7f4e00d0fdd6ef5042bb6341 (diff) | |
| download | nfs-utils-612581573ba104404b86242ca35c2ff35abd5e72.tar.gz nfs-utils-612581573ba104404b86242ca35c2ff35abd5e72.tar.xz nfs-utils-612581573ba104404b86242ca35c2ff35abd5e72.zip | |
Set right error after getaddrinfo fails
URL: https://bugzilla.redhat.com/show_bug.cgi?id=1287468
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
| -rw-r--r-- | support/export/hostname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/export/hostname.c b/support/export/hostname.c index 7a44d42..4daabe9 100644 --- a/support/export/hostname.c +++ b/support/export/hostname.c @@ -137,11 +137,11 @@ host_pton(const char *paddr) case EAI_NONAME: break; case EAI_SYSTEM: - xlog(D_GENERAL, "%s: failed to convert %s: (%d) %m", + xlog(L_WARNING, "%s: failed to convert %s: (%d) %m", __func__, paddr, errno); break; default: - xlog(D_GENERAL, "%s: failed to convert %s: %s", + xlog(L_WARNING, "%s: failed to convert %s: %s", __func__, paddr, gai_strerror(error)); break; } |
