mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
scripts: fix list indexing when printing mis-ordered symbols
The python array slice syntax expects the first and last indexes, not the first length and element count. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
d57d8d6e92
commit
4560013b6e
@ -59,8 +59,8 @@ def check_sorting(group, symfile, line, groupfile, lastgroup):
|
|||||||
issorted = False
|
issorted = False
|
||||||
|
|
||||||
if not issorted:
|
if not issorted:
|
||||||
actual = group[first:(last - first + 1)]
|
actual = group[first:last]
|
||||||
expect = sortedgroup[first:(last - first + 1)]
|
expect = sortedgroup[first:last]
|
||||||
print("Symbol block at %s:%s: symbols not sorted" %
|
print("Symbol block at %s:%s: symbols not sorted" %
|
||||||
(symfile, line), file=sys.stderr)
|
(symfile, line), file=sys.stderr)
|
||||||
for g in actual:
|
for g in actual:
|
||||||
|
Loading…
Reference in New Issue
Block a user