From 31b9ad59ba6af42277b6ae3911ec8cc2e8fbf70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 3 Oct 2004 16:54:11 +0000 Subject: [PATCH] improve error logging git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14282 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/pkinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kdc/pkinit.c b/kdc/pkinit.c index 9f08e3ded..4b6c0f5e8 100644 --- a/kdc/pkinit.c +++ b/kdc/pkinit.c @@ -1139,8 +1139,8 @@ pk_initialize(const char *user_id, const char *x509_anchors) NULL); f = fopen(mapping_file, "r"); if (f == NULL) { - krb5_warn(context, ret, "PKINIT: failed to load mappings file %s", - mapping_file); + krb5_warnx(context, "PKINIT: failed to load mappings file %s", + mapping_file); return 0; } @@ -1157,7 +1157,8 @@ pk_initialize(const char *user_id, const char *x509_anchors) subject_name = strchr(p, ':'); if (subject_name == NULL) { - krb5_warnx(context, "line %lu missing \":\" :%s\n", + krb5_warnx(context, "pkinit mapping file line %lu " + "missing \":\" :%s", lineno, buf); continue; }