From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRrCV-00061E-69 for qemu-devel@nongnu.org; Wed, 01 Jun 2011 15:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRrCU-0008Js-Ad for qemu-devel@nongnu.org; Wed, 01 Jun 2011 15:35:31 -0400 Received: from mout.perfora.net ([74.208.4.195]:60860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRpdf-0005u9-A1 for qemu-devel@nongnu.org; Wed, 01 Jun 2011 13:55:27 -0400 From: Michael Roth Date: Wed, 1 Jun 2011 12:54:11 -0500 Message-Id: <1306950854-16493-5-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1306950854-16493-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1306950854-16493-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3][ 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