From 9737383beb515a583fdb6f2aafa631fcd6797068 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 4 Jan 2012 22:23:32 +0000 Subject: qerror: add check-qerror.sh to verify alphabetical order We're supposed to keep qerror definitions and table entries in alphabetical order. In practice this is not checked. I haven't found a nice way to integrate this into the makefile yet but we can at least have this script which verifies that qerrors are in alphabetical order. Signed-off-by: Stefan Hajnoczi Signed-off-by: Luiz Capitulino --- qerror.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qerror.h') diff --git a/qerror.h b/qerror.h index 27800fe10f..40e52e8c51 100644 --- a/qerror.h +++ b/qerror.h @@ -49,7 +49,7 @@ QError *qobject_to_qerror(const QObject *obj); /* * QError class list * Please keep the definitions in alphabetical order. - * Use "grep '^#define QERR_' qerror.h | sort -c" to check. + * Use scripts/check-qerror.sh to check. */ #define QERR_BAD_BUS_FOR_DEVICE \ "{ 'class': 'BadBusForDevice', 'data': { 'device': %s, 'bad_bus_type': %s } }" -- cgit v1.2.3