+
+ * tcl_kadm5.c (unparse_err): Print error message, not just number,
+ to stderr for unrecognized error code.
+ * tcl_ovsec_kadm.c (unparse_err): Likewise.
+
2001-09-01 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (SRCS): All files live in srcdir.
case KRB5_CONFIG_BADFORMAT: code_string = "KRB5_CONFIG_BADFORMAT"; break;
case EINVAL: code_string = "EINVAL"; break;
case ENOENT: code_string = "ENOENT"; break;
- default:
- fprintf(stderr, "**** CODE %ld ***\n", (long) code);
- code_string = "UNKNOWN"; break;
+ default:
+ fprintf(stderr, "**** CODE %d (%s) ***\n", code,
+ error_message (code));
+ code_string = "UNKNOWN";
+ break;
}
error_string = error_message(code);
case KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN: code_string = "KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN"; break;
case EINVAL: code_string = "EINVAL"; break;
case ENOENT: code_string = "ENOENT"; break;
- default: fprintf(stderr, "**** CODE %ld ***\n", (long) code); code_string = "UNKNOWN"; break;
+ default:
+ fprintf(stderr, "**** CODE %d (%s) ***\n", code,
+ error_message (code));
+ code_string = "UNKNOWN";
+ break;
}
error_string = error_message(code);