]> git.proxmox.com Git - mirror_qemu.git/commit
blockdev: Improve message for orphaned -drive
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Feb 2017 10:05:45 +0000 (11:05 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 21 Feb 2017 12:17:40 +0000 (13:17 +0100)
commit664cc623bfe161759eabd263a1bf7668895b9e4a
treeb657ff5380441396b0f3430fbbdb0c344756d6bb
parent2a7ae4ee50002a2fb5ac67fc8c32cc9009335cd8
blockdev: Improve message for orphaned -drive

We warn when a -drive isn't supported by the machine type (commit
a66c9dc):

    $ qemu-system-x86_64 -S -display none -drive if=mtd
    Warning: Orphaned drive without device: id=mtd0,file=,if=mtd,bus=0,unit=0

Improve this to point to the offending bit of configuration:

    qemu-system-x86_64: -drive if=mtd: warning: machine type does not support if=mtd,bus=0,unit=0

Especially nice when it's hidden behind -readconfig foo.cfg:

    qemu-system-x86_64:foo.cfg:140: warning: machine type does not support if=mtd,bus=0,unit=0

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487153147-11530-7-git-send-email-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
blockdev.c