improve error logging

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14282 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-10-03 16:54:11 +00:00
parent 0b6e1d6012
commit 31b9ad59ba

View File

@@ -1139,7 +1139,7 @@ pk_initialize(const char *user_id, const char *x509_anchors)
NULL); NULL);
f = fopen(mapping_file, "r"); f = fopen(mapping_file, "r");
if (f == NULL) { if (f == NULL) {
krb5_warn(context, ret, "PKINIT: failed to load mappings file %s", krb5_warnx(context, "PKINIT: failed to load mappings file %s",
mapping_file); mapping_file);
return 0; return 0;
} }
@@ -1157,7 +1157,8 @@ pk_initialize(const char *user_id, const char *x509_anchors)
subject_name = strchr(p, ':'); subject_name = strchr(p, ':');
if (subject_name == NULL) { if (subject_name == NULL) {
krb5_warnx(context, "line %lu missing \":\" :%s\n", krb5_warnx(context, "pkinit mapping file line %lu "
"missing \":\" :%s",
lineno, buf); lineno, buf);
continue; continue;
} }