diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-02-18 19:48:33 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2010-03-16 16:58:32 +0100 |
commit | cf5a65aaaf3e9382e50df550ba049a1c8691a5dd (patch) | |
tree | cefb10d2cab499ba0d7c76682503a309c187dc4a /qemu-config.h | |
parent | 65abca0a3441fb47024553e7676f6f3eef685a32 (diff) |
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:)
Diffstat (limited to 'qemu-config.h')
-rw-r--r-- | qemu-config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-config.h b/qemu-config.h index b335c42926..c507687d61 100644 --- a/qemu-config.h +++ b/qemu-config.h @@ -16,6 +16,6 @@ int qemu_global_option(const char *str); void qemu_add_globals(void); void qemu_config_write(FILE *fp); -int qemu_config_parse(FILE *fp); +int qemu_config_parse(FILE *fp, const char *fname); #endif /* QEMU_CONFIG_H */ |