* logger.c (klog_com_err_proc): pass whoami in failure messages
authorMark Eichin <eichin@mit.edu>
Sun, 24 Sep 1995 03:21:39 +0000 (03:21 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 24 Sep 1995 03:21:39 +0000 (03:21 +0000)
for error log failures to match format string.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6841 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm/ChangeLog
src/lib/kadm/logger.c

index 6eed286aefec5fd1c1265c257f7cca1ed1c6ec4c..5092e2a7b2b0bb54493344e07efec2435460f6d8 100644 (file)
@@ -1,3 +1,8 @@
+Fri Sep 22 15:44:02 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * logger.c (klog_com_err_proc): pass whoami in failure messages
+       for error log failures to match format string.
+
 Wed Sep 13 10:45:25 1995 Keith Vetter (keithv@fusion.com)
 
        * keysalt.c: 16/32 bit integer mismatch.
index 981097e43d962895cd11b18941f52e482495c0c9..deb8ed1e012cd2dd0ac9b14a4a29604e9fc1ea7c 100644 (file)
@@ -274,7 +274,7 @@ klog_com_err_proc(whoami, code, format, ap)
            if (fprintf(log_control.log_entries[lindex].lfu_filep,
                        outbuf) < 0) {
                /* Attempt to report error */
-               fprintf(stderr, log_file_err,
+               fprintf(stderr, log_file_err, whoami,
                        log_control.log_entries[lindex].lfu_fname);
            }
            else {
@@ -290,7 +290,7 @@ klog_com_err_proc(whoami, code, format, ap)
            if (DEVICE_PRINT(log_control.log_entries[lindex].ldu_filep,
                             outbuf) < 0) {
                /* Attempt to report error */
-               fprintf(stderr, log_device_err,
+               fprintf(stderr, log_device_err, whoami,
                        log_control.log_entries[lindex].ldu_devname);
            }
            break;