summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2006-08-11 21:44:53 +0000
committerthomas <thomas@FreeBSD.org>2006-08-11 21:44:53 +0000
commit38872801d1718e4fb171b5031bea9fbf75da097c (patch)
tree9e0ebfd06be857440c2b2e38fdb27783f965ad58 /usr.sbin
parent8657240d0ef31869845607a7a3a29c0fe3f46d41 (diff)
downloadFreeBSD-src-38872801d1718e4fb171b5031bea9fbf75da097c.zip
FreeBSD-src-38872801d1718e4fb171b5031bea9fbf75da097c.tar.gz
(sm_mon_1_svc): Fix debugging output: when establising a monitoring
request, correctly report the location (usually localhost) to which a callback will be made when a notification is received for the monitored host. Previsouly, the name of the monitored host was reported instead. MFC after: 2 weeks
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpc.statd/procs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c
index eed7849..5a56441 100644
--- a/usr.sbin/rpc.statd/procs.c
+++ b/usr.sbin/rpc.statd/procs.c
@@ -158,8 +158,9 @@ struct sm_stat_res *sm_mon_1_svc(mon *arg, struct svc_req *req)
{
syslog(LOG_DEBUG, "monitor request for host %s", arg->mon_id.mon_name);
syslog(LOG_DEBUG, "recall host: %s prog: %d ver: %d proc: %d",
- arg->mon_id.mon_name,
- arg->mon_id.my_id.my_prog, arg->mon_id.my_id.my_vers,
+ arg->mon_id.my_id.my_name,
+ arg->mon_id.my_id.my_prog,
+ arg->mon_id.my_id.my_vers,
arg->mon_id.my_id.my_proc);
}
res.res_stat = stat_fail; /* Assume fail until set otherwise */
OpenPOWER on IntegriCloud