From patchwork Wed Jun 1 17:54:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 98248 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 53393B6F99 for ; Thu, 2 Jun 2011 05:37:43 +1000 (EST) Received: from localhost ([::1]:34298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRrEZ-00061P-Cz for incoming@patchwork.ozlabs.org; Wed, 01 Jun 2011 15:37:39 -0400 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 Received: from localhost.localdomain ([32.97.110.59]) by mrelay.perfora.net (node=mrus2) with ESMTP (Nemesis) id 0MQimL-1Q2gx93R4X-00U9tG; Wed, 01 Jun 2011 13:55:26 -0400 From: Michael Roth To: qemu-devel@nongnu.org Date: Wed, 1 Jun 2011 12:54:11 -0500 Message-Id: <1306950854-16493-5-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.4 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> X-Provags-ID: V02:K0:snklqEFqctU11xKZ5WkYpvlyYiIrl1OQfFJXRqpC7ye XgUB59QG4Es784lWmoI2x+vcYjWCW0SjGIgE2zJjGM33D0SqoC wKCoV7u1ziFL0VOOMRDQfiDmVczXfpwHKvpw+Y9ZMRdBziDjMf IE2Mblq7AJDINKlqxF3uP+NZiVF338KGIbo1JLqqlBpXhQ23pF zZIrkHJOvwSHJmjngMdcfrO4ZdwZraatN8j0CA8f94= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.208.4.195 Cc: aliguori@linux.vnet.ibm.com, Jes.Sorensen@redhat.com, agl@linux.vnet.ibm.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH v3][ 4/7] guest agent: add error class for QERR_QGA_LOGGING_FAILED X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 */