From patchwork Wed Jul 18 17:49:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 171771 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D429B2C008A for ; Thu, 19 Jul 2012 03:57:24 +1000 (EST) Received: from localhost ([::1]:33238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrYON-0000CE-UV for incoming@patchwork.ozlabs.org; Wed, 18 Jul 2012 13:50:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrYNp-0007u7-SF for qemu-devel@nongnu.org; Wed, 18 Jul 2012 13:49:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrYNo-0007C5-BY for qemu-devel@nongnu.org; Wed, 18 Jul 2012 13:49:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrYNo-0007Bs-3P for qemu-devel@nongnu.org; Wed, 18 Jul 2012 13:49:56 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6IHntZv012072 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Jul 2012 13:49:55 -0400 Received: from localhost (ovpn-113-90.phx2.redhat.com [10.3.113.90]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6IHnpRX005869; Wed, 18 Jul 2012 13:49:54 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 18 Jul 2012 14:49:20 -0300 Message-Id: <1342633760-351-10-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1342633760-351-1-git-send-email-lcapitulino@redhat.com> References: <1342633760-351-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: pbonzini@redhat.com, aliguori@us.ibm.com, armbru@redhat.com Subject: [Qemu-devel] [PATCH 9/9] scripts: update check-qerror.sh 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 The qerror.h file doesn't contain the macros anymore, the script should check qapi-schema-errors.json instead. Signed-off-by: Luiz Capitulino --- scripts/check-qerror.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/check-qerror.sh b/scripts/check-qerror.sh index af7fbd5..e397b4f 100755 --- a/scripts/check-qerror.sh +++ b/scripts/check-qerror.sh @@ -16,7 +16,5 @@ check_order() { return 0 } -check_order 'Definitions in qerror.h must be in alphabetical order:' \ - grep '^#define QERR_' qerror.h -check_order 'Entries in qerror.c:qerror_table must be in alphabetical order:' \ - sed -n '/^static.*qerror_table\[\]/,/^};/s/QERR_/&/gp' qerror.c +check_order 'Definitions must be in alphabetical order:' \ + grep '^# @' qapi-schema-errors.json