[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/23] target-i386: cpu_x86_register(): report error
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 02/23] target-i386: cpu_x86_register(): report error from property setter |
Date: |
Tue, 2 Oct 2012 17:36:54 +0200 |
Signed-off-by: Igor Mammedov <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
---
v2:
- replace "if (error_is_set(&error))" with "if (error)"
---
target-i386/cpu.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index e1ffa40..f7ca776 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1428,7 +1428,8 @@ int cpu_x86_register(X86CPU *cpu, const char *cpu_model)
object_property_set_str(OBJECT(cpu), def->model_id, "model-id", &error);
out:
- if (error_is_set(&error)) {
+ if (error) {
+ fprintf(stderr, "%s\n", error_get_pretty(error));
error_free(error);
return -1;
}
--
1.7.1
- [Qemu-devel] [PATCH 00/23 v4] target-i386: convert CPU features into properties, Igor Mammedov, 2012/10/02
- [Qemu-devel] [PATCH 03/23] target-i386: if x86_cpu_realize() failed report error and do cleanup, Igor Mammedov, 2012/10/02
- [Qemu-devel] [PATCH 02/23] target-i386: cpu_x86_register(): report error from property setter,
Igor Mammedov <=
- [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Igor Mammedov, 2012/10/02
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Eduardo Habkost, 2012/10/02
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Eduardo Habkost, 2012/10/03
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Paolo Bonzini, 2012/10/03
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Igor Mammedov, 2012/10/03
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Eduardo Habkost, 2012/10/03
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Igor Mammedov, 2012/10/04
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Paolo Bonzini, 2012/10/04
- Re: [Qemu-devel] [PATCH 07/23] target-i386: convert cpuid features into properties, Eduardo Habkost, 2012/10/04