static void qdev_get_legacy_property(DeviceState *dev, Visitor *v, void *opaque,

                                     const char *name, Error **errp)

{

    Property *prop = opaque;



    if (prop->info->print) {

        char buffer[1024];

        char *ptr = buffer;



        prop->info->print(dev, prop, buffer, sizeof(buffer));

        visit_type_str(v, &ptr, name, errp);

    } else {

        error_set(errp, QERR_PERMISSION_DENIED);

    }

}

static void qdev_get_legacy_property(DeviceState *dev, Visitor *v, void *opaque,

                                     const char *name, Error **errp)

{

    Property *prop = opaque;



    if (prop->info->print) {

        char buffer[1024];

        char *ptr = buffer;



        prop->info->print(dev, prop, buffer, sizeof(buffer));

        visit_type_str(v, &ptr, name, errp);

    } else {

        error_set(errp, QERR_PERMISSION_DENIED);

    }

}

static void FUNC_0(DeviceState *VAR_0, Visitor *VAR_1, void *VAR_2,

                                     const char *VAR_3, Error **VAR_4)

{

    Property *prop = VAR_2;



    if (prop->info->print) {

        char VAR_5[1024];

        char *VAR_6 = VAR_5;



        prop->info->print(VAR_0, prop, VAR_5, sizeof(VAR_5));

        visit_type_str(VAR_1, &VAR_6, VAR_3, VAR_4);

    } else {

        error_set(VAR_4, QERR_PERMISSION_DENIED);

    }

}

static void FUNC_0(DeviceState *VAR_0, Visitor *VAR_1, void *VAR_2,
const char *VAR_3, Error **VAR_4)
{ Property *prop = VAR_2; if (prop->info->print) { char VAR_5[1024]; char *VAR_6 = VAR_5; prop->info->print(VAR_0, prop, VAR_5, sizeof(VAR_5)); visit_type_str(VAR_1, &VAR_6, VAR_3, VAR_4); } else { error_set(VAR_4, QERR_PERMISSION_DENIED); } }