All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu-img: fix incorrect error message
@ 2007-02-08 19:34 Stuart Brady
  0 siblings, 0 replies; only message in thread
From: Stuart Brady @ 2007-02-08 19:34 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Hi,

qemu-img convert produces an incorrect error message if an unknown
file format is requested for the output image.

"qemu-img convert -f raw in.img -O snafu out.img" produces:

qemu-img: Unknown file format 'raw'

The attached patch fixes this.
-- 
Stuart Brady

[-- Attachment #2: qemu-img-outfmt-errmsg.diff --]
[-- Type: text/plain, Size: 632 bytes --]

Index: qemu-img.c
===================================================================
RCS file: /sources/qemu/qemu/qemu-img.c,v
retrieving revision 1.16
diff -u -r1.16 qemu-img.c
--- qemu-img.c	5 Feb 2007 20:21:32 -0000	1.16
+++ qemu-img.c	8 Feb 2007 19:31:54 -0000
@@ -457,7 +457,7 @@
 
     drv = bdrv_find_format(out_fmt);
     if (!drv)
-        error("Unknown file format '%s'", fmt);
+        error("Unknown file format '%s'", out_fmt);
     if (compress && drv != &bdrv_qcow && drv != &bdrv_qcow2)
         error("Compression not supported for this file format");
     if (encrypt && drv != &bdrv_qcow && drv != &bdrv_qcow2)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-08 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 19:34 [Qemu-devel] [PATCH] qemu-img: fix incorrect error message Stuart Brady

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.