Revision 34b5d2c6 hw/block/xen_disk.c

b/hw/block/xen_disk.c
809 809
        xen_be_printf(&blkdev->xendev, 2, "create new bdrv (xenbus setup)\n");
810 810
        blkdev->bs = bdrv_new(blkdev->dev);
811 811
        if (blkdev->bs) {
812
            Error *local_err = NULL;
812 813
            BlockDriver *drv = bdrv_find_whitelisted_format(blkdev->fileproto,
813 814
                                                           readonly);
814 815
            if (bdrv_open(blkdev->bs,
815
                          blkdev->filename, NULL, qflags, drv) != 0) {
816
                          blkdev->filename, NULL, qflags, drv, &local_err) != 0)
817
            {
818
                xen_be_printf(&blkdev->xendev, 0, "error: %s\n",
819
                              error_get_pretty(local_err));
820
                error_free(local_err);
816 821
                bdrv_unref(blkdev->bs);
817 822
                blkdev->bs = NULL;
818 823
            }

Also available in: Unified diff