summaryrefslogtreecommitdiff
path: root/src/security.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2015-02-04 10:47:12 -0500
committerSteve Dickson <steved@redhat.com>2015-02-05 10:18:42 -0500
commita43b98ee247dbf4e38349a4ed5ace5a995f8934a (patch)
treeea25772e76faccef9068d0ca7308575eede45a97 /src/security.c
parent6b7d70a8a57d0a68f473ab6b245cd4ae2dd672e8 (diff)
downloadrpcbind-a43b98ee247dbf4e38349a4ed5ace5a995f8934a.tar.gz
rpcbind: use xlog instead fprinting to stderr
Convert all the fprint() to xlog()s calls Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/security.c')
-rw-r--r--src/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/security.c b/src/security.c
index d272f74..70edef4 100644
--- a/src/security.c
+++ b/src/security.c
@@ -80,7 +80,7 @@ check_access(SVCXPRT *xprt, rpcproc_t proc, rpcprog_t prog, unsigned int rpcbver
if (!insecure && !is_loopback(caller)) {
#ifdef RPCBIND_DEBUG
if (debugging)
- fprintf(stderr, " declined (non-loopback sender) \n");
+ xlog(LOG_DEBUG, " declined (non-loopback sender) \n");
#endif
if (verboselog)
logit(log_severity, addr, proc, prog,
@@ -134,7 +134,7 @@ is_loopback(struct netbuf *nbuf)
sin = (struct sockaddr_in *)addr;
#ifdef RPCBIND_DEBUG
if (debugging)
- fprintf(stderr,
+ xlog(LOG_DEBUG,
"Checking caller's adress (port = %d)\n",
ntohs(sin->sin_port));
#endif
@@ -146,7 +146,7 @@ is_loopback(struct netbuf *nbuf)
sin6 = (struct sockaddr_in6 *)addr;
#ifdef RPCBIND_DEBUG
if (debugging)
- fprintf(stderr,
+ xlog(LOG_DEBUG,
"Checking caller's adress (port = %d)\n",
ntohs(sin6->sin6_port));
#endif