mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
error: New QERR_DUPLICATE_ID
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
9d494c4b4e
commit
7bc8401712
4
qerror.c
4
qerror.c
@ -96,6 +96,10 @@ static const QErrorStringTable qerror_table[] = {
|
||||
.error_fmt = QERR_DEVICE_NO_BUS,
|
||||
.desc = "Device '%(device)' has no child bus",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_DUPLICATE_ID,
|
||||
.desc = "Duplicate ID '%(id)' for %(object)",
|
||||
},
|
||||
{
|
||||
.error_fmt = QERR_FD_NOT_FOUND,
|
||||
.desc = "File descriptor named '%(name)' not found",
|
||||
|
3
qerror.h
3
qerror.h
@ -88,6 +88,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||
#define QERR_DEVICE_NO_BUS \
|
||||
"{ 'class': 'DeviceNoBus', 'data': { 'device': %s } }"
|
||||
|
||||
#define QERR_DUPLICATE_ID \
|
||||
"{ 'class': 'DuplicateId', 'data': { 'id': %s, 'object': %s } }"
|
||||
|
||||
#define QERR_FD_NOT_FOUND \
|
||||
"{ 'class': 'FdNotFound', 'data': { 'name': %s } }"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user