diff options
Diffstat (limited to 'utils/statd/stat.c')
-rw-r--r-- | utils/statd/stat.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |