diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-09 16:52:20 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-09 16:52:20 +0200 |
| commit | d23185173490b72336f96cc4ffc20bdb49b4da4d (patch) | |
| tree | 1f3829ccc17495217819edf5f1fff17c263267f4 /src/include | |
| parent | c4a68bcd43252ac1b45bee6de476d8995beefcb1 (diff) | |
| download | box64-d23185173490b72336f96cc4ffc20bdb49b4da4d.tar.gz box64-d23185173490b72336f96cc4ffc20bdb49b4da4d.zip | |
Changed various log level for libdl file open error
Diffstat (limited to 'src/include')
| -rwxr-xr-x | src/include/debug.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index f1abbc9b..6d5ce616 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -57,11 +57,13 @@ extern int box64_tcmalloc_minimal; // when using tcmalloc_minimal extern FILE* ftrace; -#define printf_log(L, ...) do {if(L<=box64_log) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) +#define printf_log(L, ...) do {if((L)<=box64_log) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) -#define printf_dump(L, ...) do {if(box64_dump || (L<=box64_log)) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) +#define printf_dump(L, ...) do {if(box64_dump || ((L)<=box64_log)) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) -#define dynarec_log(L, ...) do {if(L<=box64_dynarec_log) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) +#define printf_dlsym(L, ...) do {if(dlsym_error || ((L)<=box64_log)) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) + +#define dynarec_log(L, ...) do {if((L)<=box64_dynarec_log) {fprintf(ftrace, __VA_ARGS__); fflush(ftrace);}} while(0) #define EXPORT __attribute__((visibility("default"))) #ifdef BUILD_DYNAMIC |