summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-11-08 10:34:21 +0000
committeralfred <alfred@FreeBSD.org>2001-11-08 10:34:21 +0000
commit318979eef2dfaa72489dc2cb31fdcb2e560cdae4 (patch)
treea8e546ae584d6dceb846b4c8ea9f16a21029fbdc /usr.sbin/rpc.lockd
parent5464293209d73e334e870a1872c371c7f8a7090e (diff)
downloadFreeBSD-src-318979eef2dfaa72489dc2cb31fdcb2e560cdae4.zip
FreeBSD-src-318979eef2dfaa72489dc2cb31fdcb2e560cdae4.tar.gz
use syslog rather than printf so we can see what's going on in debug mode
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r--usr.sbin/rpc.lockd/kern.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c
index e6fc860..46cd378 100644
--- a/usr.sbin/rpc.lockd/kern.c
+++ b/usr.sbin/rpc.lockd/kern.c
@@ -556,7 +556,7 @@ show(LOCKD_MSG *mp)
size_t len;
u_int8_t *p, *t, buf[NFS_SMALLFH*3+1];
- printf("process ID: %lu\n", (long)mp->lm_msg_ident.pid);
+ syslog(LOG_DEBUG, "process ID: %lu\n", (long)mp->lm_msg_ident.pid);
fsidp = (fsid_t *)&mp->lm_fh;
fidp = (struct fid *)((u_int8_t *)&mp->lm_fh + sizeof(fsid_t));
@@ -570,13 +570,13 @@ show(LOCKD_MSG *mp)
}
*t = '\0';
- printf("fh_len %d, fh %s\n", mp->lm_fh_len, buf);
+ syslog(LOG_DEBUG, "fh_len %d, fh %s\n", mp->lm_fh_len, buf);
/* Show flock structure. */
- printf("start %qu; len %qu; pid %lu; type %d; whence %d\n",
+ syslog(LOG_DEBUG, "start %qu; len %qu; pid %lu; type %d; whence %d\n",
mp->lm_fl.l_start, mp->lm_fl.l_len, (u_long)mp->lm_fl.l_pid,
mp->lm_fl.l_type, mp->lm_fl.l_whence);
/* Show wait flag. */
- printf("wait was %s\n", mp->lm_wait ? "set" : "not set");
+ syslog(LOG_DEBUG, "wait was %s\n", mp->lm_wait ? "set" : "not set");
}
OpenPOWER on IntegriCloud