Skip to contentSkip to conversation

x86: use qemu_log_mask on triple faults

PATCH Applied Chris Wright 3 participants 3 messages Feb 26, 2009 – Feb 27, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: use qemu_log_mask on triple faults

replace open coded qemu_log_mask with proper macro

---
 target-i386/op_helper.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
target-i386/op_helper.c +1 -2
index 217916a..25e079b 100644
@@ -1275,8 +1275,7 @@ static int check_exception(int intno, int *error_code)
         if (env->hflags & HF_SVMI_MASK)
             helper_vmexit(SVM_EXIT_SHUTDOWN, 0); /* does not return */
 
-        if (qemu_loglevel_mask(CPU_LOG_RESET))
-            fprintf(logfile, "Triple fault\n");
+        qemu_log_mask(CPU_LOG_RESET, "Triple fault\n");
 
         qemu_system_reset_request();
         return EXCP_HLT;
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Chris Wright

replace open coded qemu_log_mask with proper macro

Quoted 20 lines
---
 target-i386/op_helper.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
target-i386/op_helper.c +1 -2
index 217916a..25e079b 100644
@@ -1275,8 +1275,7 @@ static int check_exception(int intno, int *error_code)
         if (env->hflags & HF_SVMI_MASK)
             helper_vmexit(SVM_EXIT_SHUTDOWN, 0); /* does not return */
 
-        if (qemu_loglevel_mask(CPU_LOG_RESET))
-            fprintf(logfile, "Triple fault\n");
+        qemu_log_mask(CPU_LOG_RESET, "Triple fault\n");
 
         qemu_system_reset_request();
         return EXCP_HLT;
Signature · 1 line
Eduardo
#2 lore raw
In reply to Chris Wright
Quoted 4 lines · Chris Wright

replace open coded qemu_log_mask with proper macro

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 20 lines
---
 target-i386/op_helper.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
target-i386/op_helper.c +1 -2
index 217916a..25e079b 100644
@@ -1275,8 +1275,7 @@ static int check_exception(int intno, int *error_code)
         if (env->hflags & HF_SVMI_MASK)
             helper_vmexit(SVM_EXIT_SHUTDOWN, 0); /* does not return */
 
-        if (qemu_loglevel_mask(CPU_LOG_RESET))
-            fprintf(logfile, "Triple fault\n");
+        qemu_log_mask(CPU_LOG_RESET, "Triple fault\n");
 
         qemu_system_reset_request();
         return EXCP_HLT;