From 28254563da331245f9d95e81d6a05f3997aea8d8 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 13 Apr 2015 13:05:11 -0400 Subject: [PATCH] VBOX: Always show the VboxStartup.log on error. --- samples/vboxwrapper/vbox_common.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/samples/vboxwrapper/vbox_common.cpp b/samples/vboxwrapper/vbox_common.cpp index a5755289d1..3d435810f8 100644 --- a/samples/vboxwrapper/vbox_common.cpp +++ b/samples/vboxwrapper/vbox_common.cpp @@ -227,7 +227,7 @@ void VBOX_BASE::dump_hypervisor_logs(bool include_error_logs) { get_trace_log(local_startup_log); get_vm_exit_code(vm_exit_code); - if (include_error_logs && !started_successfully) { + if (include_error_logs) { fprintf( stderr, "\n" @@ -244,20 +244,6 @@ void VBOX_BASE::dump_hypervisor_logs(bool include_error_logs) { local_startup_log.c_str(), local_trace_log.c_str() ); - } else { - fprintf( - stderr, - "\n" - " Hypervisor System Log:\n\n" - "%s\n" - " VM Execution Log:\n\n" - "%s\n" - " VM Trace Log:\n\n" - "%s", - local_system_log.c_str(), - local_vm_log.c_str(), - local_trace_log.c_str() - ); } if (vm_exit_code) {