Skip to content

Commit 6670841

Browse files
committed
use is_log_level_active to check if logging is enabled
1 parent 449950c commit 6670841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qemu/tcg/tcg.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3728,7 +3728,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb)
37283728
TCGOp *op;
37293729

37303730
#ifndef NDEBUG
3731-
if (getenv("UNICORN_DEBUG")) {
3731+
if (is_log_level_active(CPU_LOG_TB_IN_ASM)) {
37323732
tcg_dump_ops(s, false, "TCG before optimization:");
37333733
}
37343734
#endif
@@ -3777,7 +3777,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb)
37773777
#endif
37783778

37793779
#ifndef NDEBUG
3780-
if (getenv("UNICORN_DEBUG")) {
3780+
if (is_log_level_active(CPU_LOG_TB_IN_ASM)) {
37813781
tcg_dump_ops(s, false, "TCG before codegen:");
37823782
}
37833783
#endif

0 commit comments

Comments
 (0)