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
+2005-02-08 Ken Raeburn <raeburn@mit.edu>
+
+ * error_message.c (com_err_initialize, com_err_terminate): If
+ SHOW_INITFINI_FUNCS is defined, print tracing messages.
+
2005-01-17 Jeffrey Altman <jaltman@mit.edu>
* error_message.c: implement library unload cleanup of mutexes
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)
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);
+2005-02-08 Ken Raeburn <raeburn@mit.edu>
+
+ * prof_file.c (profile_library_initializer,
+ profile_library_finalizer): If SHOW_INITFINI_FUNCS is defined,
+ print tracing messages.
+
2005-01-13 Ken Raeburn <raeburn@mit.edu>
* prof_file.c (profile_free_file_data): Destroy mutex before
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
}
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);