From: Ken Raeburn Date: Wed, 9 Feb 2005 00:20:38 +0000 (+0000) Subject: * gss_libinit.c (gssint_lib_init, gssint_lib_fini) [SHOW_INITFINI_FUNCS]: Print traci... X-Git-Tag: ms-bug-test-20060525~345 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cf6ed4b2dd8cc80ba0c5ffef1db6d5038f93747;p=krb5.git * gss_libinit.c (gssint_lib_init, gssint_lib_fini) [SHOW_INITFINI_FUNCS]: Print tracing messages git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17090 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/ChangeLog b/src/lib/gssapi/ChangeLog index db3cc07dc..ec210d2ad 100644 --- a/src/lib/gssapi/ChangeLog +++ b/src/lib/gssapi/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Ken Raeburn + + * gss_libinit.c (gssint_lib_init, gssint_lib_fini) + [SHOW_INITFINI_FUNCS]: Print tracing messages. + 2005-02-02 Ken Raeburn * configure.in: Check for xom.h. Set include_xom to a C include diff --git a/src/lib/gssapi/gss_libinit.c b/src/lib/gssapi/gss_libinit.c index d45ac440c..5561b5398 100644 --- a/src/lib/gssapi/gss_libinit.c +++ b/src/lib/gssapi/gss_libinit.c @@ -17,6 +17,11 @@ MAKE_FINI_FUNCTION(gssint_lib_fini); int gssint_lib_init(void) { int err; + +#ifdef SHOW_INITFINI_FUNCS + printf("gssint_lib_init\n"); +#endif + #if !USE_BUNDLE_ERROR_STRINGS add_error_table(&et_k5g_error_table); add_error_table(&et_ggss_error_table); @@ -35,8 +40,15 @@ int gssint_lib_init(void) void gssint_lib_fini(void) { - if (!INITIALIZER_RAN(gssint_lib_init) || PROGRAM_EXITING()) + if (!INITIALIZER_RAN(gssint_lib_init) || PROGRAM_EXITING()) { +#ifdef SHOW_INITFINI_FUNCS + printf("gssint_lib_fini: skipping\n"); +#endif return; + } +#ifdef SHOW_INITFINI_FUNCS + printf("gssint_lib_fini\n"); +#endif #if !USE_BUNDLE_ERROR_STRINGS remove_error_table(&et_k5g_error_table); remove_error_table(&et_ggss_error_table);