Skip to contentSkip to conversation

qemu-img: Fix error message

PATCH Applied Kevin Wolf 2 participants 2 messages Feb 17, 2010 – Feb 19, 2010

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 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.

---
 qemu-img.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
qemu-img.c +1 -1
index b03b382..250d892 100644
@@ -1169,7 +1169,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;
         }
     }
Signature · 1 line
1.6.6
#1 lore raw
Quoted 6 lines · Kevin Wolf

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.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 18 lines
---
  qemu-img.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
qemu-img.c +1 -1
index b03b382..250d892 100644
@@ -1169,7 +1169,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;
          }
      }