From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:47167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSdBP-0000dq-0L for qemu-devel@nongnu.org; Fri, 03 Jun 2011 18:49:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSdBN-0003tM-FH for qemu-devel@nongnu.org; Fri, 03 Jun 2011 18:49:34 -0400 Received: from mout.perfora.net ([74.208.4.194]:60762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSdBN-0003tE-10 for qemu-devel@nongnu.org; Fri, 03 Jun 2011 18:49:33 -0400 From: Michael Roth Date: Fri, 3 Jun 2011 17:48:03 -0500 Message-Id: <1307141286-9392-5-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1307141286-9392-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1307141286-9392-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4][ 4/7] guest agent: add error class for QERR_QGA_LOGGING_FAILED List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@linux.vnet.ibm.com, Jes.Sorensen@redhat.com, agl@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com Signed-off-by: Michael Roth --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index c18641f..059981b 100644 --- a/qerror.c +++ b/qerror.c @@ -209,6 +209,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_VNC_SERVER_FAILED, .desc = "Could not start VNC server on %(target)", }, + { + .error_fmt = QERR_QGA_LOGGING_FAILED, + .desc = "failed to write log statement due to logging being disabled", + }, {} }; diff --git a/qerror.h b/qerror.h index 8b971fd..22e1b09 100644 --- a/qerror.h +++ b/qerror.h @@ -178,4 +178,7 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_FEATURE_DISABLED \ "{ 'class': 'FeatureDisabled', 'data': { 'name': %s } }" +#define QERR_QGA_LOGGING_FAILED \ + "{ 'class': 'QgaLoggingFailed', 'data': {} }" + #endif /* QERROR_H */ -- 1.7.0.4