From fb8c65a8c2a74a2916b180fd4675f5b51e56c674 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 23 Jul 2011 11:44:42 -0700 Subject: [PATCH] better logging --- lib/krb5/test_cc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/krb5/test_cc.c b/lib/krb5/test_cc.c index a800c69a9..911fba524 100644 --- a/lib/krb5/test_cc.c +++ b/lib/krb5/test_cc.c @@ -174,7 +174,7 @@ test_init_vs_destroy(krb5_context context, const char *type) ret = krb5_cc_new_unique(context, type, NULL, &id); if (ret) - krb5_err(context, 1, ret, "krb5_cc_new_unique"); + krb5_err(context, 1, ret, "krb5_cc_new_unique: %s", type); if (asprintf(&n, "%s:%s", krb5_cc_get_type(context, id), @@ -216,7 +216,7 @@ test_cache_remove(krb5_context context, const char *type) ret = krb5_cc_new_unique(context, type, NULL, &id); if (ret) - krb5_err(context, 1, ret, "krb5_cc_gen_new"); + krb5_err(context, 1, ret, "krb5_cc_gen_new: %s", type); ret = krb5_cc_initialize(context, id, p); if (ret) @@ -458,7 +458,7 @@ test_copy(krb5_context context, const char *from, const char *to) ret = krb5_cc_new_unique(context, from, NULL, &fromid); if (ret) - krb5_err(context, 1, ret, "krb5_cc_new_unique"); + krb5_err(context, 1, ret, "krb5_cc_new_unique: %s", from); ret = krb5_cc_initialize(context, fromid, p); if (ret) @@ -466,7 +466,7 @@ test_copy(krb5_context context, const char *from, const char *to) ret = krb5_cc_new_unique(context, to, NULL, &toid); if (ret) - krb5_err(context, 1, ret, "krb5_cc_gen_new"); + krb5_err(context, 1, ret, "krb5_cc_gen_new: %s", to); ret = krb5_cc_copy_cache(context, fromid, toid); if (ret) @@ -502,7 +502,7 @@ test_move(krb5_context context, const char *type) if (ret == KRB5_CC_NOSUPP) return; else if (ret) - krb5_err(context, 1, ret, "krb5_cc_new_unique"); + krb5_err(context, 1, ret, "krb5_cc_new_unique: %s", type); ret = krb5_parse_name(context, "lha@SU.SE", &p); if (ret) -- 2.11.4.GIT