From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1T8KEe-0007XZ-9M for mharc-qemu-trivial@gnu.org; Sun, 02 Sep 2012 20:09:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8KEb-0007Vp-KE for qemu-trivial@nongnu.org; Sun, 02 Sep 2012 20:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8KEa-0001mp-RZ for qemu-trivial@nongnu.org; Sun, 02 Sep 2012 20:09:45 -0400 Received: from hub021-nj-8.exch021.serverdata.net ([206.225.164.233]:48343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8KEa-0001ml-Nk; Sun, 02 Sep 2012 20:09:44 -0400 Received: from localhost.localdomain (131.239.15.22) by east.exch021.serverdata.net (10.240.4.118) with Microsoft SMTP Server (TLS) id 14.2.309.2; Sun, 2 Sep 2012 17:09:43 -0700 From: Don Slutz To: , , , Date: Sun, 2 Sep 2012 20:09:20 -0400 Message-ID: <1346630960-30887-1-git-send-email-Don@CloudSwitch.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1346532470-15859-1-git-send-email-Don@CloudSwitch.com> References: <1346532470-15859-1-git-send-email-Don@CloudSwitch.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 206.225.164.233 Cc: qemu-trivial@nongnu.org, Don Slutz Subject: [Qemu-trivial] [PATCH v2] target-i386: Report on error during cpu_x86_register(). X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 00:09:46 -0000 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; } -- 1.7.1