diff options
Diffstat (limited to 'bootdevice.c')
-rw-r--r-- | bootdevice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootdevice.c b/bootdevice.c index 1ee7b117de..149ee3aaf0 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -275,7 +275,7 @@ static void device_get_bootindex(Object *obj, Visitor *v, void *opaque, const char *name, Error **errp) { BootIndexProperty *prop = opaque; - visit_type_int32(v, prop->bootindex, name, errp); + visit_type_int32(v, name, prop->bootindex, errp); } static void device_set_bootindex(Object *obj, Visitor *v, void *opaque, @@ -285,7 +285,7 @@ static void device_set_bootindex(Object *obj, Visitor *v, void *opaque, int32_t boot_index; Error *local_err = NULL; - visit_type_int32(v, &boot_index, name, &local_err); + visit_type_int32(v, name, &boot_index, &local_err); if (local_err) { goto out; } |