qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATURE
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8af3648843
commit
f54e364112
5
qerror.c
5
qerror.c
@ -200,6 +200,11 @@ static const QErrorStringTable qerror_table[] = {
|
|||||||
.error_fmt = QERR_UNDEFINED_ERROR,
|
.error_fmt = QERR_UNDEFINED_ERROR,
|
||||||
.desc = "An undefined error has ocurred",
|
.desc = "An undefined error has ocurred",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.error_fmt = QERR_UNKNOWN_BLOCK_FORMAT_FEATURE,
|
||||||
|
.desc = "'%(device)' uses a %(format) feature which is not "
|
||||||
|
"supported by this qemu version: %(feature)",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.error_fmt = QERR_VNC_SERVER_FAILED,
|
.error_fmt = QERR_VNC_SERVER_FAILED,
|
||||||
.desc = "Could not start VNC server on %(target)",
|
.desc = "Could not start VNC server on %(target)",
|
||||||
|
3
qerror.h
3
qerror.h
@ -165,6 +165,9 @@ QError *qobject_to_qerror(const QObject *obj);
|
|||||||
#define QERR_UNDEFINED_ERROR \
|
#define QERR_UNDEFINED_ERROR \
|
||||||
"{ 'class': 'UndefinedError', 'data': {} }"
|
"{ 'class': 'UndefinedError', 'data': {} }"
|
||||||
|
|
||||||
|
#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
|
||||||
|
"{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }"
|
||||||
|
|
||||||
#define QERR_VNC_SERVER_FAILED \
|
#define QERR_VNC_SERVER_FAILED \
|
||||||
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
|
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user