error: Track locations in configuration files
commitcf5a65aaaf3e9382e50df550ba049a1c8691a5dd
authorMarkus Armbruster <armbru@redhat.com>
Thu, 18 Feb 2010 18:48:33 +0000 (18 19:48 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 15:58:32 +0000 (16 16:58 +0100)
treecefb10d2cab499ba0d7c76682503a309c187dc4a
parent65abca0a3441fb47024553e7676f6f3eef685a32
error: Track locations in configuration files

New LOC_FILE.  Use it for tracking file name and line number in
qemu_config_parse().  We now report errors like

    qemu:foo.conf:42: Did not find I2C bus for smbus-eeprom

In particular, gems like this message:

    -device: no driver specified

become almost nice now:

    qemu:foo.conf:44: -device: no driver specified

(A later commit will get rid of the bogus -device:)
qemu-config.c
qemu-config.h
qemu-error.c
qemu-error.h
vl.c