summaryrefslogtreecommitdiffstats
path: root/utils/statd/simu.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-11-24 08:36:20 -0500
committerSteve Dickson <steved@redhat.com>2009-11-24 08:36:20 -0500
commit9ccfe0fa5a43dfc4453b09e328565a6c8f999fe4 (patch)
tree8e2d3525f3748b08d51602d41f715fd1fe27262f /utils/statd/simu.c
parent29e2293a69a75abf0ce1c85daff0b94c9875d56a (diff)
downloadnfs-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/simu.c')
-rw-r--r--utils/statd/simu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/statd/simu.c b/utils/statd/simu.c
index a7ecb85..7df04d9 100644
--- a/utils/statd/simu.c
+++ b/utils/statd/simu.c
@@ -27,24 +27,26 @@ sm_simu_crash_1_svc (void *argp, struct svc_req *rqstp)
static char *result = NULL;
struct in_addr caller;
+ xlog(D_CALL, "Received SM_SIMU_CRASH");
+
if (sin->sin_family != AF_INET) {
- note(N_WARNING, "Call to statd from non-AF_INET address");
+ xlog_warn("Call to statd from non-AF_INET address");
goto failure;
}
caller = sin->sin_addr;
if (caller.s_addr != htonl(INADDR_LOOPBACK)) {
- note(N_WARNING, "Call to statd from non-local host %s",
+ xlog_warn("Call to statd from non-local host %s",
inet_ntoa(caller));
goto failure;
}
if (ntohs(sin->sin_port) >= 1024) {
- note(N_WARNING, "Call to statd-simu-crash from unprivileged port");
+ xlog_warn("Call to statd-simu-crash from unprivileged port");
goto failure;
}
- note (N_WARNING, "*** SIMULATING CRASH! ***");
+ xlog_warn("*** SIMULATING CRASH! ***");
my_svc_exit ();
if (rtnl)