From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH v2] target-i386: Report on error during cpu_x86_register(). Date: Mon, 17 Sep 2012 10:02:59 -0400 Message-ID: <50572D93.8010701@CloudSwitch.Com> References: <1347890425-9696-1-git-send-email-Don@CloudSwitch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , , , , , , , , , To: Don Slutz Return-path: Received: from hub021-nj-1.exch021.serverdata.net ([206.225.164.216]:4562 "EHLO hub021-nj-1.exch021.serverdata.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756228Ab2IQODA (ORCPT ); Mon, 17 Sep 2012 10:03:00 -0400 In-Reply-To: <1347890425-9696-1-git-send-email-Don@CloudSwitch.com> Sender: kvm-owner@vger.kernel.org List-ID: On 09/17/12 10:00, Don Slutz wrote: > Send it to stderr before free of the details. > > Signed-off-by: Don Slutz > --- > v2: Change __FUNCTION__ to __func__ > > target-i386/cpu.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 57c064f..760cca4 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -1352,6 +1352,7 @@ int cpu_x86_register(X86CPU *cpu, const char *cpu_model) > } > object_property_set_str(OBJECT(cpu), def->model_id, "model-id", &error); > if (error_is_set(&error)) { > + fprintf(stderr, "%s: %s\n", __func__, error_get_pretty(error)); > error_free(error); > return -1; > } I am having a lot of mistakes this morning. Please ignore this e-mail.