]> git.proxmox.com Git - qemu.git/commitdiff
qemu-img: Fix error message
authorKevin Wolf <kwolf@redhat.com>
Wed, 17 Feb 2010 11:33:17 +0000 (12:33 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Feb 2010 21:53:54 +0000 (15:53 -0600)
When qemu-img can't open the new backing file for a rebase, it prints an error
message which contains the file name of the old backing file. This is wrong,
obviously.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-img.c

index 0465e4a3a838f7075f804efacdbc6b4999a0c1ea..0c9f2d4d51bb77b4abee05874709bba10f1f2598 100644 (file)
@@ -1168,7 +1168,7 @@ static int img_rebase(int argc, char **argv)
         if (bdrv_open2(bs_new_backing, out_baseimg, BRDV_O_FLAGS | BDRV_O_RDWR,
             new_backing_drv))
         {
-            error("Could not open new backing file '%s'", backing_name);
+            error("Could not open new backing file '%s'", out_baseimg);
             return -1;
         }
     }