From 9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 24 Nov 2009 08:36:20 -0500 Subject: statd: Replace note() with xlog() in rpc.statd To facilitate code sharing between statd and sm-notify (and with other components of nfs-utils), replace sm-notify's nsm_log() with xlog(). Since opt_quiet is used in only a handful of insignificant cases, it is removed. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/statd/callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/statd/callback.c') diff --git a/utils/statd/callback.c b/utils/statd/callback.c index 8885238..2f98aeb 100644 --- a/utils/statd/callback.c +++ b/utils/statd/callback.c @@ -35,12 +35,12 @@ sm_notify_1_svc(struct stat_chge *argp, struct svc_req *rqstp) struct sockaddr_in *sin = nfs_getrpccaller_in(rqstp->rq_xprt); char *ip_addr = xstrdup(inet_ntoa(sin->sin_addr)); - dprintf(N_DEBUG, "Received SM_NOTIFY from %s, state: %d", + xlog(D_CALL, "Received SM_NOTIFY from %s, state: %d", argp->mon_name, argp->state); /* quick check - don't bother if we're not monitoring anyone */ if (rtnl == NULL) { - note(N_WARNING, "SM_NOTIFY from %s while not monitoring any hosts.", + xlog_warn("SM_NOTIFY from %s while not monitoring any hosts", argp->mon_name); return ((void *) &result); } -- cgit