From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lcn5E-0005vC-3h for qemu-devel@nongnu.org; Thu, 26 Feb 2009 15:43:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lcn58-0005rV-DH for qemu-devel@nongnu.org; Thu, 26 Feb 2009 15:43:50 -0500 Received: from [199.232.76.173] (port=46213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lcn58-0005rM-6h for qemu-devel@nongnu.org; Thu, 26 Feb 2009 15:43:46 -0500 Received: from mx2.redhat.com ([66.187.237.31]:49499) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lcn55-00044p-BU for qemu-devel@nongnu.org; Thu, 26 Feb 2009 15:43:46 -0500 Date: Thu, 26 Feb 2009 17:42:48 -0300 From: Eduardo Habkost Message-ID: <20090226204248.GK4805@blackpad> References: <20090226203428.GP7436@sequoia.sous-sol.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090226203428.GP7436@sequoia.sous-sol.org> Subject: [Qemu-devel] Re: [PATCH] x86: use qemu_log_mask on triple faults Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Wright Cc: qemu-devel@nongnu.org, Juan Quintela On Thu, Feb 26, 2009 at 12:34:28PM -0800, Chris Wright wrote: > replace open coded qemu_log_mask with proper macro > > Signed-off-by: Chris Wright Acked-by: Eduardo Habkost > --- > target-i386/op_helper.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c > index 217916a..25e079b 100644 > --- a/target-i386/op_helper.c > +++ b/target-i386/op_helper.c > @@ -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; > > -- Eduardo