Skip to content

Commit

Permalink
Send kpropd debug msgs to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams authored and greghudson committed Oct 8, 2012
1 parent c0112c6 commit f26cad9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/slave/kpropd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f26cad9

Please sign in to comment.