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,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;
}