mirror of https://github.com/proxmox/mirror_qemu
error: New QERR_BAD_BUS_FOR_DEVICE
parent
aa924ae730
commit
56e9f56309
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)%%"
|
||||||
*/
|
*/
|
||||||
static const QErrorStringTable qerror_table[] = {
|
static const QErrorStringTable qerror_table[] = {
|
||||||
|
{
|
||||||
|
.error_fmt = QERR_BAD_BUS_FOR_DEVICE,
|
||||||
|
.desc = "Device '%(device)' can't go on a %(bad_bus_type) bus",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.error_fmt = QERR_BUS_NOT_FOUND,
|
.error_fmt = QERR_BUS_NOT_FOUND,
|
||||||
.desc = "Bus '%(bus)' not found",
|
.desc = "Bus '%(bus)' not found",
|
||||||
|
|
3
qerror.h
3
qerror.h
|
@ -42,6 +42,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
||||||
/*
|
/*
|
||||||
* QError class list
|
* QError class list
|
||||||
*/
|
*/
|
||||||
|
#define QERR_BAD_BUS_FOR_DEVICE \
|
||||||
|
"{ 'class': 'BadBusForDevice', 'data': { 'device': %s, 'bad_bus_type': %s } }"
|
||||||
|
|
||||||
#define QERR_BUS_NOT_FOUND \
|
#define QERR_BUS_NOT_FOUND \
|
||||||
"{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
|
"{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue