diff --git a/qemu/qom/object.c b/qemu/qom/object.c index 2db48cd0..66fa6c48 100644 --- a/qemu/qom/object.c +++ b/qemu/qom/object.c @@ -1110,8 +1110,8 @@ static Object *object_resolve_link(struct uc_struct *uc, Object *obj, const char target = object_resolve_path_type(uc, path, target_type, &ambiguous); if (ambiguous) { - error_set(errp, ERROR_CLASS_GENERIC_ERROR, - "Path '%s' does not uniquely identify an object", path); + error_setg(errp, "Path '%s' does not uniquely identify an object", + path); } else if (!target) { target = object_resolve_path(uc, path, &ambiguous); if (target || ambiguous) {