Commit d34dda5ea5cf1f74c4543679f33bc9ea56c90c24

Authored by ths
1 parent bd59780c

qemu-img: fix incorrect error message, by Stuart Brady.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2414 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
qemu-img.c
... ... @@ -457,7 +457,7 @@ static int img_convert(int argc, char **argv)
457 457  
458 458 drv = bdrv_find_format(out_fmt);
459 459 if (!drv)
460   - error("Unknown file format '%s'", fmt);
  460 + error("Unknown file format '%s'", out_fmt);
461 461 if (compress && drv != &bdrv_qcow && drv != &bdrv_qcow2)
462 462 error("Compression not supported for this file format");
463 463 if (encrypt && drv != &bdrv_qcow && drv != &bdrv_qcow2)
... ...