mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-15 06:01:58 -06:00
QError: Add QERR_DEVICE_NOT_FOUND
New class for device not found errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8204a9180c
commit
357b6156f9
2 changed files with 6 additions and 0 deletions
4
qerror.c
4
qerror.c
|
@ -40,6 +40,10 @@ static const QType qerror_type = {
|
||||||
* "running out of foo: %(foo)%%"
|
* "running out of foo: %(foo)%%"
|
||||||
*/
|
*/
|
||||||
const QErrorStringTable qerror_table[] = {
|
const QErrorStringTable qerror_table[] = {
|
||||||
|
{
|
||||||
|
.error_fmt = QERR_DEVICE_NOT_FOUND,
|
||||||
|
.desc = "The %(device) device has not been found",
|
||||||
|
},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
qerror.h
2
qerror.h
|
@ -38,5 +38,7 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||||
/*
|
/*
|
||||||
* QError class list
|
* QError class list
|
||||||
*/
|
*/
|
||||||
|
#define QERR_DEVICE_NOT_FOUND \
|
||||||
|
"{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }"
|
||||||
|
|
||||||
#endif /* QERROR_H */
|
#endif /* QERROR_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue