From 7079db50d8dc047b4be60d93f5cfd92ba5a1b63b Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 24 Sep 1995 03:21:39 +0000 Subject: [PATCH] * logger.c (klog_com_err_proc): pass whoami in failure messages 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 | 5 +++++ src/lib/kadm/logger.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm/ChangeLog b/src/lib/kadm/ChangeLog index 6eed286ae..5092e2a7b 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 22 15:44:02 1995 Mark Eichin + + * 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. diff --git a/src/lib/kadm/logger.c b/src/lib/kadm/logger.c index 981097e43..deb8ed1e0 100644 --- a/src/lib/kadm/logger.c +++ b/src/lib/kadm/logger.c @@ -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; -- 2.26.2