X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fstat.c;h=477f63234e8748ee75b556825e67786bd61704e7;hp=799239f1d956f668c0cf2c79c98175914740b0b4;hb=9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4;hpb=29e2293a69a75abf0ce1c85daff0b94c9875d56a diff --git a/utils/statd/stat.c b/utils/statd/stat.c index 799239f..477f632 100644 --- a/utils/statd/stat.c +++ b/utils/statd/stat.c @@ -42,13 +42,15 @@ sm_stat_1_svc (struct sm_name *argp, struct svc_req *rqstp) { static sm_stat_res result; + xlog(D_CALL, "Received SM_STAT from %s", argp->mon_name); + if (gethostbyname (argp->mon_name) == NULL) { - note (N_WARNING, "gethostbyname error for %s", argp->mon_name); + xlog_warn ("gethostbyname error for %s", argp->mon_name); result.res_stat = STAT_FAIL; - dprintf (N_DEBUG, "STAT_FAIL for %s", argp->mon_name); + xlog (D_GENERAL, "STAT_FAIL for %s", argp->mon_name); } else { result.res_stat = STAT_SUCC; - dprintf (N_DEBUG, "STAT_SUCC for %s", argp->mon_name); + xlog (D_GENERAL, "STAT_SUCC for %s", argp->mon_name); } result.state = MY_STATE; return(&result);