summaryrefslogtreecommitdiffstats
path: root/qemu-error.h
Commit message (Collapse)AuthorAgeFilesLines
* error: New error_printf_unless_qmp()Markus Armbruster2010-03-161-0/+2
|
* error: Track locations on command lineMarkus Armbruster2010-03-161-1/+2
| | | | | | | New LOC_CMDLINE. Use it for tracking option with argument in lookup_opt(). We now report errors like this qemu: -device smbus-eeprom: Did not find I2C bus for smbus-eeprom
* error: Track locations in configuration filesMarkus Armbruster2010-03-161-1/+2
| | | | | | | | | | | | | | | | | 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:)
* error: Include the program name in error messages to stderrMarkus Armbruster2010-03-161-0/+1
|
* error: Infrastructure to track locations for error reportingMarkus Armbruster2010-03-161-0/+16
| | | | | | | | | | | | | | | | | | New struct Location holds a location. So far, the only location is LOC_NONE, so this doesn't do anything useful yet. Passing the current location all over the place would be too cumbersome. Hide it away in static cur_loc instead, and provide accessors. Print it in error_report(). Store it in QError, and print it in qerror_print(). Store it in QemuOpt, for use by qemu_opts_foreach(). This makes error_report() do the right thing when it runs within qemu_opts_foreach(). We may still have to store it in other data structures holding user input for better error messages. Left for another day.
* error: Rename qemu_error_new() to qerror_report()Markus Armbruster2010-03-161-5/+5
|
* error: Replace qemu_error() by error_report()Markus Armbruster2010-03-161-1/+1
| | | | | | | | | | | | | error_report() terminates the message with a newline. Strip it it from its arguments. This fixes a few error messages lacking a newline: net_handle_fd_param()'s "No file descriptor named %s found", and tap_open()'s "vnet_hdr=1 requested, but no kernel support for IFF_VNET_HDR available" (all three versions). There's one place that passes arguments without newlines intentionally: load_vmstate(). Fix it up.
* error: New error_printf() and error_vprintf()Markus Armbruster2010-03-161-0/+14
|
* error: Move qemu_error & friends into their own headerMarkus Armbruster2010-03-161-0/+12
OpenPOWER on IntegriCloud