* [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()
@ 2015-03-03 9:55 zhanghailiang
2015-03-03 17:18 ` Eric Blake
0 siblings, 1 reply; 5+ messages in thread
From: zhanghailiang @ 2015-03-03 9:55 UTC (permalink / raw)
To: qemu-trivial; +Cc: zhanghailiang, peter.huangpeng, armbru, qemu-devel
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
hw/arm/virt.c | 2 +-
savevm.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 69f51ac..4732c12 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -768,7 +768,7 @@ static void machvirt_init(MachineState *machine)
/* Handle any CPU options specified by the user */
cc->parse_features(CPU(cpuobj), cpustr[1], &err);
if (err) {
- error_report("%s", error_get_pretty(err));
+ error_report_err(err);
exit(1);
}
diff --git a/savevm.c b/savevm.c
index ce2b6a2..c4f8c39 100644
--- a/savevm.c
+++ b/savevm.c
@@ -932,8 +932,7 @@ int qemu_loadvm_state(QEMUFile *f)
int ret;
if (qemu_savevm_state_blocked(&local_err)) {
- error_report("%s", error_get_pretty(local_err));
- error_free(local_err);
+ error_report_err(local_err);
return -EINVAL;
}
--
1.7.12.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()
2015-03-03 9:55 [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err() zhanghailiang
@ 2015-03-03 17:18 ` Eric Blake
2015-03-04 7:14 ` Markus Armbruster
2015-03-04 8:45 ` zhanghailiang
0 siblings, 2 replies; 5+ messages in thread
From: Eric Blake @ 2015-03-03 17:18 UTC (permalink / raw)
To: zhanghailiang, qemu-trivial; +Cc: qemu-devel, peter.huangpeng, armbru
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]
On 03/03/2015 02:55 AM, zhanghailiang wrote:
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> ---
Might have been nice to mention this was a continuation of the work
started in commit 565f65d27.
> hw/arm/virt.c | 2 +-
> savevm.c | 3 +--
> 2 files changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()
2015-03-03 17:18 ` Eric Blake
@ 2015-03-04 7:14 ` Markus Armbruster
2015-03-04 8:53 ` zhanghailiang
2015-03-04 8:45 ` zhanghailiang
1 sibling, 1 reply; 5+ messages in thread
From: Markus Armbruster @ 2015-03-04 7:14 UTC (permalink / raw)
To: Eric Blake; +Cc: qemu-trivial, peter.huangpeng, zhanghailiang, qemu-devel
Eric Blake <eblake@redhat.com> writes:
> On 03/03/2015 02:55 AM, zhanghailiang wrote:
>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>> ---
>
> Might have been nice to mention this was a continuation of the work
> started in commit 565f65d27.
Yes. Perhaps the -trivial maintainer can stick in a reference on
commit.
>> hw/arm/virt.c | 2 +-
>> savevm.c | 3 +--
>> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()
2015-03-03 17:18 ` Eric Blake
2015-03-04 7:14 ` Markus Armbruster
@ 2015-03-04 8:45 ` zhanghailiang
1 sibling, 0 replies; 5+ messages in thread
From: zhanghailiang @ 2015-03-04 8:45 UTC (permalink / raw)
To: Eric Blake, qemu-trivial; +Cc: qemu-devel, hangaohuai, peter.huangpeng, armbru
On 2015/3/4 1:18, Eric Blake wrote:
> On 03/03/2015 02:55 AM, zhanghailiang wrote:
>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>> ---
>
> Might have been nice to mention this was a continuation of the work
> started in commit 565f65d27.
>
OK, will send v2 with this message added, Thanks.
>> hw/arm/virt.c | 2 +-
>> savevm.c | 3 +--
>> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()
2015-03-04 7:14 ` Markus Armbruster
@ 2015-03-04 8:53 ` zhanghailiang
0 siblings, 0 replies; 5+ messages in thread
From: zhanghailiang @ 2015-03-04 8:53 UTC (permalink / raw)
To: Markus Armbruster, Eric Blake
Cc: qemu-trivial, hangaohuai, peter.huangpeng, qemu-devel
On 2015/3/4 15:14, Markus Armbruster wrote:
> Eric Blake <eblake@redhat.com> writes:
>
>> On 03/03/2015 02:55 AM, zhanghailiang wrote:
>>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>>> ---
>>
>> Might have been nice to mention this was a continuation of the work
>> started in commit 565f65d27.
>
> Yes. Perhaps the -trivial maintainer can stick in a reference on
> commit.
>
:), i will send v2, to make his life easy. Thanks.
>>> hw/arm/virt.c | 2 +-
>>> savevm.c | 3 +--
>>> 2 files changed, 2 insertions(+), 3 deletions(-)
>>
>> Reviewed-by: Eric Blake <eblake@redhat.com>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-04 8:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 9:55 [Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err() zhanghailiang
2015-03-03 17:18 ` Eric Blake
2015-03-04 7:14 ` Markus Armbruster
2015-03-04 8:53 ` zhanghailiang
2015-03-04 8:45 ` zhanghailiang
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).