mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
QError: Add QERR_DEVICE_NOT_ACTIVE
New class for device not active errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3ced9f7a36
commit
055f6122a6
2 changed files with 7 additions and 0 deletions
4
qerror.c
4
qerror.c
|
@ -44,6 +44,10 @@ const QErrorStringTable qerror_table[] = {
|
|||
.error_fmt = QERR_DEVICE_NOT_FOUND,
|
||||
.desc = "The %(device) device has not been found",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_DEVICE_NOT_ACTIVE,
|
||||
.desc = "The %(device) device has not been activated by the guest",
|
||||
},
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
3
qerror.h
3
qerror.h
|
@ -41,4 +41,7 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||
#define QERR_DEVICE_NOT_FOUND \
|
||||
"{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }"
|
||||
|
||||
#define QERR_DEVICE_NOT_ACTIVE \
|
||||
"{ 'class': 'DeviceNotActive', 'data': { 'device': %s } }"
|
||||
|
||||
#endif /* QERROR_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue