All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err()
@ 2015-03-04 10:25 zhanghailiang
  2015-03-04 16:50 ` Markus Armbruster
  2015-03-10  6:20 ` Michael Tokarev
  0 siblings, 2 replies; 4+ messages in thread
From: zhanghailiang @ 2015-03-04 10:25 UTC (permalink / raw)
  To: qemu-trivial; +Cc: zhanghailiang, peter.huangpeng, armbru, qemu-devel

This is a continuation of the work started in commit 565f65d27:
"error: Use error_report_err() where appropriate"

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
v2:
- Add Reviewd-by and commit message
---
 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] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err()
  2015-03-04 10:25 [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err() zhanghailiang
@ 2015-03-04 16:50 ` Markus Armbruster
  2015-03-10  6:04   ` zhanghailiang
  2015-03-10  6:20 ` Michael Tokarev
  1 sibling, 1 reply; 4+ messages in thread
From: Markus Armbruster @ 2015-03-04 16:50 UTC (permalink / raw)
  To: zhanghailiang; +Cc: qemu-trivial, peter.huangpeng, qemu-devel

zhanghailiang <zhang.zhanghailiang@huawei.com> writes:

> This is a continuation of the work started in commit 565f65d27:
> "error: Use error_report_err() where appropriate"
>
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>

Reviewed-by: Markus Armbruster <armbru@redhat.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err()
  2015-03-04 16:50 ` Markus Armbruster
@ 2015-03-10  6:04   ` zhanghailiang
  0 siblings, 0 replies; 4+ messages in thread
From: zhanghailiang @ 2015-03-10  6:04 UTC (permalink / raw)
  To: mjt
  Cc: qemu-trivial, Markus Armbruster, hangaohuai, peter.huangpeng, qemu-devel

Hi Michael,

This patch has been reviewed, Please consider for merging.

Thanks,
zhanghailiang

On 2015/3/5 0:50, Markus Armbruster wrote:
> zhanghailiang <zhang.zhanghailiang@huawei.com> writes:
>
>> This is a continuation of the work started in commit 565f65d27:
>> "error: Use error_report_err() where appropriate"
>>
>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>> Reviewed-by: Eric Blake <eblake@redhat.com>
>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err()
  2015-03-04 10:25 [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err() zhanghailiang
  2015-03-04 16:50 ` Markus Armbruster
@ 2015-03-10  6:20 ` Michael Tokarev
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2015-03-10  6:20 UTC (permalink / raw)
  To: zhanghailiang, qemu-trivial; +Cc: qemu-devel, peter.huangpeng, armbru

04.03.2015 13:25, zhanghailiang wrote:
> This is a continuation of the work started in commit 565f65d27:
> "error: Use error_report_err() where appropriate"

Applied to -trivial, thank you!

/mjt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-10  6:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 10:25 [Qemu-devel] [PATCH v2] error: Replace error_report() & error_free() with error_report_err() zhanghailiang
2015-03-04 16:50 ` Markus Armbruster
2015-03-10  6:04   ` zhanghailiang
2015-03-10  6:20 ` Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.