]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Send kpropd debug msgs to stderr
authorNicolas Williams <nico@cryptonector.com>
Sat, 22 Sep 2012 03:10:39 +0000 (22:10 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 8 Oct 2012 15:38:32 +0000 (11:38 -0400)
src/slave/kpropd.c

index 367380edecea42ad938e5f70727d37bc732c5bf5..770ade40f6067a39dbd62a31503a1e9a67e16842 100644 (file)
@@ -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);