From b162ded39b825f1a16a95e62a4129e49ec6206c6 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 16 Mar 2011 13:52:38 -0300 Subject: [PATCH 08/11] qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATURE RH-Author: Kevin Wolf Message-id: <1300283560-13085-7-git-send-email-kwolf@redhat.com> Patchwork-id: 20136 O-Subject: [RHEL-6.1 qemu-kvm PATCH 6/8] qerror: Add QERR_UNKNOWN_BLOCK_FORMAT_FEATURE Bugzilla: 688119 RH-Acked-by: Juan Quintela RH-Acked-by: Jes Sorensen RH-Acked-by: Markus Armbruster Bugzilla: 688119 Signed-off-by: Kevin Wolf Reviewed-by: Anthony Liguori (cherry picked from commit f54e3641122e51c6343d587805422642f307462e) --- qerror.c | 5 +++++ qerror.h | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) Signed-off-by: Luiz Capitulino --- qerror.c | 5 +++++ qerror.h | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 484e2f2..f2b2ab7 100644 --- a/qerror.c +++ b/qerror.c @@ -201,6 +201,11 @@ static const QErrorStringTable qerror_table[] = { .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, .desc = "Could not start VNC server on %(target)", }, diff --git a/qerror.h b/qerror.h index a50df4d..779f455 100644 --- a/qerror.h +++ b/qerror.h @@ -167,6 +167,9 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }" +#define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \ + "{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }" + #define QERR_VNC_SERVER_FAILED \ "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }" -- 1.7.4.1.230.gae447