@@ -117,7 +117,7 @@ __attribute__((constructor)) void doorstop_ctor() {
117117 }
118118
119119 if (plthook_replace (hook , "dlsym" , & dlsym_hook , NULL ) != 0 )
120- printf ("Failed to hook dlsym, ignoring it. Error: %s\n " ,
120+ LOG ("Failed to hook dlsym, ignoring it. Error: %s" ,
121121 plthook_error ());
122122
123123 if (config .boot_config_override ) {
@@ -132,11 +132,11 @@ __attribute__((constructor)) void doorstop_ctor() {
132132
133133#if !defined(__APPLE__ )
134134 if (plthook_replace (hook , "fopen64" , & fopen64_hook , NULL ) != 0 )
135- printf ("Failed to hook fopen64, ignoring it. Error: %s\n " ,
135+ LOG ("Failed to hook fopen64, ignoring it. Error: %s" ,
136136 plthook_error ());
137137#endif
138138 if (plthook_replace (hook , "fopen" , & fopen_hook , NULL ) != 0 )
139- printf ("Failed to hook fopen, ignoring it. Error: %s\n " ,
139+ LOG ("Failed to hook fopen, ignoring it. Error: %s" ,
140140 plthook_error ());
141141 } else {
142142 LOG ("The boot.config file won't be overriden because the provided "
@@ -146,11 +146,11 @@ __attribute__((constructor)) void doorstop_ctor() {
146146 }
147147
148148 if (plthook_replace (hook , "fclose" , & fclose_hook , NULL ) != 0 )
149- printf ("Failed to hook fclose, ignoring it. Error: %s\n " ,
149+ LOG ("Failed to hook fclose, ignoring it. Error: %s" ,
150150 plthook_error ());
151151
152152 if (plthook_replace (hook , "dup2" , & dup2_hook , NULL ) != 0 )
153- printf ("Failed to hook dup2, ignoring it. Error: %s\n " ,
153+ LOG ("Failed to hook dup2, ignoring it. Error: %s" ,
154154 plthook_error ());
155155
156156#if defined(__APPLE__ )
@@ -162,7 +162,7 @@ __attribute__((constructor)) void doorstop_ctor() {
162162 void * mono_handle = plthook_handle_by_name ("libmono" );
163163
164164 if (plthook_replace (hook , "mono_jit_init_version" , & init_mono , NULL ) != 0 )
165- printf ("Failed to hook jit_init_version, ignoring it. This is probably fine unless you see other errors. Error: %s\n " ,
165+ LOG ("Failed to hook jit_init_version, ignoring it. This is probably fine unless you see other errors. Error: %s" ,
166166 plthook_error ());
167167 else if (mono_handle )
168168 load_mono_funcs (mono_handle );
0 commit comments