static char *vio_format_dev_name(VIOsPAPRDevice *dev)

{

    VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&dev->qdev);

    char *name;



    /* Device tree style name device@reg */

    if (asprintf(&name, "%s@%x", info->dt_name, dev->reg) < 0) {

        return NULL;

    }



    return name;

}

static char *vio_format_dev_name(VIOsPAPRDevice *dev)

{

    VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&dev->qdev);

    char *name;



    

    if (asprintf(&name, "%s@%x", info->dt_name, dev->reg) < 0) {

        return NULL;

    }



    return name;

}

static char *FUNC_0(VIOsPAPRDevice *VAR_0)

{

    VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&VAR_0->qdev);

    char *VAR_1;



    

    if (asprintf(&VAR_1, "%s@%x", info->dt_name, VAR_0->reg) < 0) {

        return NULL;

    }



    return VAR_1;

}

static char *FUNC_0(VIOsPAPRDevice *VAR_0)
{ VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&VAR_0->qdev); char *VAR_1; if (asprintf(&VAR_1, "%s@%x", info->dt_name, VAR_0->reg) < 0) { return NULL; } return VAR_1; }