Skip to content
  • Markus Armbruster's avatar
    664cc623
    blockdev: Improve message for orphaned -drive · 664cc623
    Markus Armbruster authored
    
    
    We warn when a -drive isn't supported by the machine type (commit
    a66c9dc7):
    
        $ 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: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <1487153147-11530-7-git-send-email-armbru@redhat.com>
    Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
    664cc623
    blockdev: Improve message for orphaned -drive
    Markus Armbruster authored
    
    
    We warn when a -drive isn't supported by the machine type (commit
    a66c9dc7):
    
        $ 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: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <1487153147-11530-7-git-send-email-armbru@redhat.com>
    Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
Loading