]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
vl: Fix error location of positional arguments
authorMarkus Armbruster <armbru@redhat.com>
Mon, 18 Mar 2019 18:33:12 +0000 (19:33 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 2 Apr 2019 11:30:25 +0000 (13:30 +0200)
commit17f30eae122a0a336dfe96cd525c96007414f7fb
treef43a5aa504940d7a9c7f12bf0e6e33f9c2f38a1a
parentd61d1a1fb2f1db6c54651844a28389c523f3f8c7
vl: Fix error location of positional arguments

We blame badness in positional arguments on the last option argument:

    $ qemu-system-x86_64 -vnc :1 bad.img
    qemu-system-x86_64: -vnc :1: Could not open 'foo': No such file or directory

I believe we've done this ever since we reported locations.  Fix it to

    qemu-system-x86_64: bad.img: Could not open 'bad.img': No such file or directory

Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190318183312.4684-1-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
vl.c