Skip to content

Commit a6851fa

Browse files
committed
Solved issues on macos.
1 parent 0e37d08 commit a6851fa

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

source/portability/source/portability_library_path.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ static int portability_library_path_list_phdr_callback(struct dl_phdr_info *info
122122

123123
#endif
124124

125-
#include <stdio.h>
126-
127125
int portability_library_path_find(const char name[], portability_library_path_str path, size_t *length)
128126
{
129127
#if defined(unix) || defined(__unix__) || defined(__unix) || \
@@ -199,14 +197,6 @@ int portability_library_path_find(const char name[], portability_library_path_st
199197
{
200198
const char *image_name = _dyld_get_image_name(image_index);
201199

202-
// TODO: Delete this
203-
printf("Debug: #%d / %d => %s\n", image_index, size, image_name);
204-
fflush(stdout);
205-
206-
printf("Debug ends with: %s | %s\n", image_name, path);
207-
printf("Debug ends with: %s | %s\n", image_name, name);
208-
fflush(stdout);
209-
210200
if (portability_library_path_ends_with(image_name, path) == 0)
211201
{
212202
size_t image_length = strnlen(image_name, PORTABILITY_PATH_SIZE);
@@ -223,9 +213,6 @@ int portability_library_path_find(const char name[], portability_library_path_st
223213
*length = image_length;
224214
}
225215

226-
printf("------------------------------- Debug ended with: %s | %s => %s\n", image_name, path, name);
227-
fflush(stdout);
228-
229216
return 0;
230217
}
231218
}

0 commit comments

Comments
 (0)