From nobody Wed May 1 22:45:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1575393323; cv=none; d=zohomail.com; s=zohoarc; b=i1i/783plfxB+O6xGFYKSvit1IEyH+o64l8FxulfWLzr7uPEFPn+jk49krTSWhK5/U2wXA9cWjoaeycPf3977FDSvgCorgdXpkxPfsa8LeQIL1n0/uFgdy56ksg/jk1lvZAXVJjbdSHm9kFahfhLvP6BNwxAdum9HylAkFSnXKQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575393323; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TMPfrNfhbSb28RutjjkLLsTsHw37D6u7VBTUarCeMpw=; b=lKXXBWygdmFWDI9AbtfditcJD+EjhySx+MU0EuuldeGWY742vrWLc3TQzqf2E50JIgpAvNkB50VktHtGxrEDj0Iwj8YX09KGmKGKM78u1mCUMf0+0eIyBkhlYEkyf/jwM+GFJBpRrHe4fonGvULEHfCWgvzHnouwbKpLsRci2lc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1575393323231789.3876762655816; Tue, 3 Dec 2019 09:15:23 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-314-wChjmui0P9qL_Li8m8vKOA-1; Tue, 03 Dec 2019 12:15:20 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 90F6F800D5A; Tue, 3 Dec 2019 17:15:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FC2E5D6AE; Tue, 3 Dec 2019 17:15:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C35315BC00; Tue, 3 Dec 2019 17:15:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xB3HFAbJ002637 for ; Tue, 3 Dec 2019 12:15:11 -0500 Received: by smtp.corp.redhat.com (Postfix) id F02B967E59; Tue, 3 Dec 2019 17:15:10 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6D17167661; Tue, 3 Dec 2019 17:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575393322; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TMPfrNfhbSb28RutjjkLLsTsHw37D6u7VBTUarCeMpw=; b=YdSCxJwCXhe2AJOcY3DeuFzzN9qccMdCeP9z3/27KxJN4EJ+suLdU8TYru/09Uqla0NIlc Qias5ZaDl/f+fxZkPe0yKd9riLTAoh5SGvckCe8uS5V9j/i3+mITt1QkR2BtU+BUc/JeDu w4FnhyR+iphQs/2ibwLK17wMvo6GtuY= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Tue, 3 Dec 2019 17:15:02 +0000 Message-Id: <20191203171502.87780-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] scripts: fix list indexing when printing mis-ordered symbols X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: wChjmui0P9qL_Li8m8vKOA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) The python array slice syntax expects the first and last indexes, not the first length and element count. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Michal Privoznik --- scripts/check-symsorting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-symsorting.py b/scripts/check-symsorting.py index 8e698c0657..006c42f1b3 100755 --- a/scripts/check-symsorting.py +++ b/scripts/check-symsorting.py @@ -59,8 +59,8 @@ def check_sorting(group, symfile, line, groupfile, lastgr= oup): issorted =3D False =20 if not issorted: - actual =3D group[first:(last - first + 1)] - expect =3D sortedgroup[first:(last - first + 1)] + actual =3D group[first:last] + expect =3D sortedgroup[first:last] print("Symbol block at %s:%s: symbols not sorted" % (symfile, line), file=3Dsys.stderr) for g in actual: --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list