diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-11-24 08:36:20 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-11-24 08:36:20 -0500 |
commit | 9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4 (patch) | |
tree | 8e2d3525f3748b08d51602d41f715fd1fe27262f /utils/statd/callback.c | |
parent | 29e2293a69a75abf0ce1c85daff0b94c9875d56a (diff) | |
download | nfs-utils-9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4.tar.gz nfs-utils-9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4.tar.xz nfs-utils-9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4.zip |
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/statd/callback.c')
-rw-r--r-- | utils/statd/callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |