From: Don Slutz <Don@CloudSwitch.com>
To: qemu-devel@nongnu.org, mtosatti@redhat.com, ehabkost@redhat.com,
imammedo@redhat.com, avi@redhat.com, afaerber@suse.de,
peter.maydell@linaro.org, kvm@vger.kernel.org,
anthony@codemonkey.wsqemu-devel@nongnu.org, blauwirbel@gmail.com
Cc: qemu-trivial@nongnu.org, Don Slutz <Don@CloudSwitch.com>
Subject: [Qemu-devel] [PATCH v2] target-i386: Report on error during cpu_x86_register().
Date: Mon, 17 Sep 2012 10:00:25 -0400 [thread overview]
Message-ID: <1347890425-9696-1-git-send-email-Don@CloudSwitch.com> (raw)
Send it to stderr before free of the details.
Signed-off-by: Don Slutz <Don@CloudSwitch.com>
---
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
next reply other threads:[~2012-09-17 14:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 14:00 Don Slutz [this message]
2012-09-17 14:02 ` [Qemu-devel] [PATCH v2] target-i386: Report on error during cpu_x86_register() Don Slutz
-- strict thread matches above, loose matches on Subject: below --
2012-09-01 20:47 [Qemu-devel] [PATCH] " Don Slutz
2012-09-03 0:09 ` [Qemu-devel] [PATCH v2] " Don Slutz
2012-09-11 14:13 ` Don Slutz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347890425-9696-1-git-send-email-Don@CloudSwitch.com \
--to=don@cloudswitch.com \
--cc=afaerber@suse.de \
--cc=anthony@codemonkey.wsqemu-devel \
--cc=avi@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).