Skip to content

Commit d30b5bc

Browse files
author
Michael Tokarev
committed
scripts/: spelling fixes
Signed-off-by: Michael Tokarev <[email protected]> Reviewed-by: Alex Bennée <[email protected]>
1 parent a1a62ce commit d30b5bc

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ sub process {
16211621
my $hex =
16221622
qr/%[-+ *.0-9]*([hljztL]|ll|hh)?(x|X|"\s*PRI[xX][^"]*"?)/;
16231623

1624-
# don't consider groups splitted by [.:/ ], like 2A.20:12ab
1624+
# don't consider groups split by [.:/ ], like 2A.20:12ab
16251625
my $tmpline = $rawline;
16261626
$tmpline =~ s/($hex[.:\/ ])+$hex//g;
16271627

scripts/ci/gitlab-pipeline-status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CommunicationFailure(Exception):
2828

2929

3030
class NoPipelineFound(Exception):
31-
"""Communication is successfull but pipeline is not found."""
31+
"""Communication is successful but pipeline is not found."""
3232

3333

3434
def get_local_branch_commit(branch):

scripts/codeconverter/codeconverter/qom_macros.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def make_structname(self) -> str:
142142
return name
143143

144144
def strip_typedef(self) -> Patch:
145-
"""generate patch that will strip typedef from the struct declartion
145+
"""generate patch that will strip typedef from the struct declaration
146146
147147
The caller is responsible for readding the typedef somewhere else.
148148
"""

scripts/oss-fuzz/minimize_qtest_trace.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
"""
5-
This takes a crashing qtest trace and tries to remove superflous operations
5+
This takes a crashing qtest trace and tries to remove superfluous operations
66
"""
77

88
import sys
@@ -38,7 +38,7 @@ def usage():
3838
Options:
3939
4040
-M1: enable a loop around the remove minimizer, which may help decrease some
41-
timing dependant instructions. Off by default.
41+
timing dependent instructions. Off by default.
4242
-M2: try setting bits in operand of write/out to zero. Off by default.
4343
4444
""".format((sys.argv[0])))
@@ -177,7 +177,7 @@ def remove_lines(newtrace, outpath):
177177
# it into two separate write commands. If splitting the data operand
178178
# from length/2^n bytes to the left does not work, try to move the pivot
179179
# to the right side, then add one to n, until length/2^n == 0. The idea
180-
# is to prune unneccessary bytes from long writes, while accommodating
180+
# is to prune unnecessary bytes from long writes, while accommodating
181181
# arbitrary MemoryRegion access sizes and alignments.
182182

183183
# This algorithm will fail under some rare situations.
@@ -292,7 +292,7 @@ def minimize_trace(inpath, outpath):
292292
old_len = len(newtrace) + 1
293293
while(old_len > len(newtrace)):
294294
old_len = len(newtrace)
295-
print("trace lenth = ", old_len)
295+
print("trace length = ", old_len)
296296
remove_lines(newtrace, outpath)
297297
if not M1 and not M2:
298298
break

scripts/performance/topN_callgrind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Syntax:
55
# topN_callgrind.py [-h] [-n] <number of displayed top functions> -- \
66
# <qemu executable> [<qemu executable options>] \
7-
# <target executable> [<target execurable options>]
7+
# <target executable> [<target executable options>]
88
#
99
# [-h] - Print the script arguments help message.
1010
# [-n] - Specify the number of top functions to print.

scripts/performance/topN_perf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Syntax:
55
# topN_perf.py [-h] [-n] <number of displayed top functions> -- \
66
# <qemu executable> [<qemu executable options>] \
7-
# <target executable> [<target execurable options>]
7+
# <target executable> [<target executable options>]
88
#
99
# [-h] - Print the script arguments help message.
1010
# [-n] - Specify the number of top functions to print.

scripts/qapi/gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def write(self, output_dir: str) -> None:
8181
if odir:
8282
os.makedirs(odir, exist_ok=True)
8383

84-
# use os.open for O_CREAT to create and read a non-existant file
84+
# use os.open for O_CREAT to create and read a non-existent file
8585
fd = os.open(pathname, os.O_RDWR | os.O_CREAT, 0o666)
8686
with os.fdopen(fd, 'r+', encoding='utf-8') as fp:
8787
text = self.get_content()

scripts/replay-dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def print_event(eid, name, string=None, event_count=None):
111111
# Decoders for each event type
112112

113113
def decode_unimp(eid, name, _unused_dumpfile):
114-
"Unimplimented decoder, will trigger exit"
114+
"Unimplemented decoder, will trigger exit"
115115
print("%s not handled - will now stop" % (name))
116116
return False
117117

scripts/simplebench/bench_block_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def bench_block_job(cmd, cmd_args, qemu_args):
3939
binary
4040
4141
Returns {'seconds': int} on success and {'error': str} on failure, dict may
42-
contain addional 'vm-log' field. Return value is compatible with
42+
contain additional 'vm-log' field. Return value is compatible with
4343
simplebench lib.
4444
"""
4545

0 commit comments

Comments
 (0)