qemu-img: Fix error message

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>
This commit is contained in:
Kevin Wolf 2010-02-17 12:33:17 +01:00 committed by Anthony Liguori
parent 60b1bd4fc5
commit 584771e6b6
1 changed files with 1 additions and 1 deletions

View 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;
}
}