From patchwork Sat Sep 1 20:47:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: target-i386: Report on error during cpu_x86_register(). From: Don Slutz X-Patchwork-Id: 181153 Message-Id: <1346532470-15859-1-git-send-email-Don@CloudSwitch.com> To: , Cc: qemu-trivial@nongnu.org, Don Slutz Date: Sat, 1 Sep 2012 16:47:50 -0400 Send it to stderr before free of the details. Signed-off-by: Don Slutz --- 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..5c0fef1 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", __FUNCTION__, error_get_pretty(error)); error_free(error); return -1; }