summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2012-09-21 22:10:39 -0500
committerGreg Hudson <ghudson@mit.edu>2012-10-08 11:38:32 -0400
commitf26cad9488966e1f58ae824cadad65e4f7035ae2 (patch)
tree64c2af9cdec121105364d888b3058deaa48f0426
parentc0112c620e3c6d7467a8f72d4177664be6418263 (diff)
downloadkrb5-f26cad9488966e1f58ae824cadad65e4f7035ae2.tar.gz
krb5-f26cad9488966e1f58ae824cadad65e4f7035ae2.tar.xz
krb5-f26cad9488966e1f58ae824cadad65e4f7035ae2.zip
Send kpropd debug msgs to stderr
-rw-r--r--src/slave/kpropd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c
index 367380ede..770ade40f 100644
--- a/src/slave/kpropd.c
+++ b/src/slave/kpropd.c
@@ -489,7 +489,7 @@ void doit(fd)
host, sizeof(host), NULL, 0, 0) == 0) {
syslog(LOG_INFO, _("Connection from %s"), host);
if (debug)
- printf("Connection from %s\n", host);
+ fprintf(stderr, "Connection from %s\n", host);
}
/*
@@ -1367,7 +1367,8 @@ kerberos_authenticate(context, fd, clientp, etype, my_sin)
exit(1);
}
- printf(_("authenticated client: %s (etype == %s)\n"), name, etypebuf);
+ fprintf(stderr, _("authenticated client: %s (etype == %s)\n"),
+ name, etypebuf);
free(name);
}
@@ -1655,7 +1656,7 @@ load_database(context, kdb_util, database_file_name)
kdb_log_context *log_ctx;
if (debug)
- printf("calling kdb5_util to load database\n");
+ fprintf(stderr, "calling kdb5_util to load database\n");
log_ctx = context->kdblog_context;
@@ -1687,7 +1688,7 @@ load_database(context, kdb_util, database_file_name)
/*NOTREACHED*/
default:
if (debug)
- printf("Child PID is %d\n", child_pid);
+ fprintf(stderr, "Load PID is %d\n", child_pid);
if (wait(&waitb) < 0) {
com_err(progname, errno, _("while waiting for %s"), kdb_util);
exit(1);