From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Luiz Capitulino 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> Subject: [Qemu-devel] [PATCH 9/9] scripts: update check-qerror.sh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, aliguori@us.ibm.com, armbru@redhat.com 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 -- 1.7.11.2.249.g31c7954.dirty