summaryrefslogtreecommitdiffstats
path: root/qerror.c
Commit message (Collapse)AuthorAgeFilesLines
* QError: New QERR_DEVICE_NOT_ENCRYPTEDShahar Havivi2010-03-171-0/+4
| | | | | Signed-off-by: Shahar Havivi <shaharh@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* error: New QERR_NO_BUS_FOR_DEVICEMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_DEVICE_INIT_FAILEDMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_BUS_NO_HOTPLUGMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_BAD_BUS_FOR_DEVICEMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_DEVICE_NO_BUSMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_DEVICE_MULTIPLE_BUSSESMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_BUS_NOT_FOUNDMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_PROPERTY_VALUE_NOT_FOUNDMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_PROPERTY_VALUE_IN_USEMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_PROPERTY_VALUE_BADMarkus Armbruster2010-03-161-0/+4
|
* error: New QERR_PROPERTY_NOT_FOUNDMarkus Armbruster2010-03-161-0/+4
|
* error: Polish human-readable error descriptionsMarkus Armbruster2010-03-161-14/+14
| | | | Also put error definitions in alphabetical order
* error: Infrastructure to track locations for error reportingMarkus Armbruster2010-03-161-1/+4
| | | | | | | | | | | | | | | | | | 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: Replace qemu_error() by error_report()Markus Armbruster2010-03-161-2/+2
| | | | | | | | | | | | | 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: Move qemu_error & friends into their own headerMarkus Armbruster2010-03-161-1/+1
|
* Revert "QError: New QERR_INVALID_CPU_INDEX"Markus Armbruster2010-02-031-4/+0
| | | | | | | This reverts commit 64a34bb14c0e358a6b2f14805e59ef25bf62d6d5. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_INVALID_CPU_INDEXMarkus Armbruster2010-01-261-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_OPEN_FILE_FAILEDMarkus Armbruster2010-01-261-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QMP: add human-readable description to error responseMarkus Armbruster2009-12-071-5/+16
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_TOO_MANY_FILESMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* New QERR_INVALID_PARAMETERMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_FD_NOT_SUPPLIEDMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_FD_NOT_FOUNDMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_VNC_SERVER_FAILEDMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_SET_PASSWD_FAILEDMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_INVALID_BLOCK_FORMATMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_DEVICE_NOT_REMOVABLEMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: New QERR_DEVICE_LOCKEDMarkus Armbruster2009-12-071-0/+4
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Put error definitions in alphabetical orderMarkus Armbruster2009-12-071-14/+14
| | | | | | | Also fix the odd typoe and clean up whitespace. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: new class for device encrypted errorsLuiz Capitulino2009-12-071-0/+4
| | | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Add class for invalid passwordsLuiz Capitulino2009-12-071-0/+4
| | | | | Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Add "static" to please SparseBlue Swirl2009-12-041-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* QError: Add errors needed by QMPLuiz Capitulino2009-12-031-0/+24
| | | | | | | | | | | | Only QERR_QMP_BAD_INPUT_OBJECT is QMP specific, the others can be used in different contexts by other subsystems. Please, note that QERR_JSON_PARSING signals any parsing error from the json parser. We will need it until the parser gets updated to use QError. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Add QERR_KVM_MISSING_CAPLuiz Capitulino2009-12-031-0/+4
| | | | | | | New class for KVM unavailable features errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Add QERR_DEVICE_NOT_ACTIVELuiz Capitulino2009-12-031-0/+4
| | | | | | | New class for device not active errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* QError: Add QERR_DEVICE_NOT_FOUNDLuiz Capitulino2009-12-031-0/+4
| | | | | | | New class for device not found errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Introduce QErrorLuiz Capitulino2009-12-031-0/+260
QError is a high-level data type which represents an exception in QEMU, it stores the following error information: - class Error class name (eg. "ServiceUnavailable") - description A detailed error description, which can contain references to run-time error data - filename The file name of where the error occurred - line number The exact line number of the error - function The function name of where the error occurred - run-time data Any run-time error data Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud