From: Ken Raeburn Date: Wed, 9 Feb 2005 02:18:19 +0000 (+0000) Subject: * et/error_message.c (com_err_initialize, com_err_terminate): If X-Git-Tag: ms-bug-test-20060525~341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=792978be273e47e5098cc4406cb3c6d868cf4f93;p=krb5.git * et/error_message.c (com_err_initialize, com_err_terminate): If SHOW_INITFINI_FUNCS is defined, print tracing messages. * profile/prof_file.c (profile_library_initializer, profile_library_finalizer): If SHOW_INITFINI_FUNCS is defined, print tracing messages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17094 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index bec740722..e4c906b9f 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Ken Raeburn + + * error_message.c (com_err_initialize, com_err_terminate): If + SHOW_INITFINI_FUNCS is defined, print tracing messages. + 2005-01-17 Jeffrey Altman * error_message.c: implement library unload cleanup of mutexes diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index cb76b2a37..b7f8947d2 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -45,6 +45,9 @@ MAKE_FINI_FUNCTION(com_err_terminate); int com_err_initialize(void) { int err; +#ifdef SHOW_INITFINI_FUNCS + printf("com_err_initialize\n"); +#endif terminated = 0; err = k5_mutex_finish_init(&et_list_lock); if (err) @@ -61,8 +64,15 @@ int com_err_initialize(void) void com_err_terminate(void) { struct dynamic_et_list *e, *enext; - if (! INITIALIZER_RAN(com_err_initialize) || PROGRAM_EXITING()) + if (! INITIALIZER_RAN(com_err_initialize) || PROGRAM_EXITING()) { +#ifdef SHOW_INITFINI_FUNCS + printf("com_err_terminate: skipping\n"); +#endif return; + } +#ifdef SHOW_INITFINI_FUNCS + printf("com_err_terminate\n"); +#endif k5_key_delete(K5_KEY_COM_ERR); k5_mutex_destroy(&com_err_hook_lock); k5_mutex_lock(&et_list_lock); diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 985664014..f5f860271 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +2005-02-08 Ken Raeburn + + * prof_file.c (profile_library_initializer, + profile_library_finalizer): If SHOW_INITFINI_FUNCS is defined, + print tracing messages. + 2005-01-13 Ken Raeburn * prof_file.c (profile_free_file_data): Destroy mutex before diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index 9b0048c9c..6201dd351 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -49,6 +49,9 @@ MAKE_FINI_FUNCTION(profile_library_finalizer); int profile_library_initializer(void) { +#ifdef SHOW_INITFINI_FUNCS + printf("profile_library_initializer\n"); +#endif #if !USE_BUNDLE_ERROR_STRINGS add_error_table(&et_prof_error_table); #endif @@ -56,8 +59,15 @@ int profile_library_initializer(void) } void profile_library_finalizer(void) { - if (! INITIALIZER_RAN(profile_library_initializer) || PROGRAM_EXITING()) + if (! INITIALIZER_RAN(profile_library_initializer) || PROGRAM_EXITING()) { +#ifdef SHOW_INITFINI_FUNCS + printf("profile_library_finalizer: skipping\n"); +#endif return; + } +#ifdef SHOW_INITFINI_FUNCS + printf("profile_library_finalizer\n"); +#endif k5_mutex_destroy(&g_shared_trees_mutex); #if !USE_BUNDLE_ERROR_STRINGS remove_error_table(&et_prof_error_table);