mirror of
https://github.com/qemu/qemu.git
synced 2025-07-28 22:23:42 +00:00
scripts/: fix some comment spelling errors
I found that there are many spelling errors in the comments of qemu, so I used the spellcheck tool to check the spelling errors and finally found some spelling errors in the scripts folder. Signed-off-by: zhaolichang <zhaolichang@huawei.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20200917075029.313-5-zhaolichang@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
76ca4b58c2
commit
65fdb3cc2e
@ -1870,7 +1870,7 @@ sub process {
|
|||||||
substr($s, 0, length($c), '');
|
substr($s, 0, length($c), '');
|
||||||
|
|
||||||
# Make sure we remove the line prefixes as we have
|
# Make sure we remove the line prefixes as we have
|
||||||
# none on the first line, and are going to readd them
|
# none on the first line, and are going to re-add them
|
||||||
# where necessary.
|
# where necessary.
|
||||||
$s =~ s/\n./\n/gs;
|
$s =~ s/\n./\n/gs;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
# Does the following:
|
# Does the following:
|
||||||
# - Header files without a recognizable header guard are skipped.
|
# - Header files without a recognizable header guard are skipped.
|
||||||
# - Clean up any untidy header guards in-place. Warn if the cleanup
|
# - Clean up any untidy header guards in-place. Warn if the cleanup
|
||||||
# renames guard symbols, and explain how to find occurences of these
|
# renames guard symbols, and explain how to find occurrences of these
|
||||||
# symbols that may have to be updated manually.
|
# symbols that may have to be updated manually.
|
||||||
# - Warn about duplicate header guard symbols. To make full use of
|
# - Warn about duplicate header guard symbols. To make full use of
|
||||||
# this warning, you should clean up *all* headers in one run.
|
# this warning, you should clean up *all* headers in one run.
|
||||||
|
@ -94,7 +94,7 @@ def str_indent(c):
|
|||||||
|
|
||||||
|
|
||||||
def str_fields(fields):
|
def str_fields(fields):
|
||||||
"""Return a string uniquely identifing FIELDS"""
|
"""Return a string uniquely identifying FIELDS"""
|
||||||
r = ''
|
r = ''
|
||||||
for n in sorted(fields.keys()):
|
for n in sorted(fields.keys()):
|
||||||
r += '_' + n
|
r += '_' + n
|
||||||
@ -814,7 +814,7 @@ def parse_generic(lineno, parent_pat, name, toks):
|
|||||||
arg = None
|
arg = None
|
||||||
fmt = None
|
fmt = None
|
||||||
for t in toks:
|
for t in toks:
|
||||||
# '&Foo' gives a format an explcit argument set.
|
# '&Foo' gives a format an explicit argument set.
|
||||||
if re.fullmatch(re_arg_ident, t):
|
if re.fullmatch(re_arg_ident, t):
|
||||||
tt = t[1:]
|
tt = t[1:]
|
||||||
if arg:
|
if arg:
|
||||||
@ -903,7 +903,7 @@ def parse_generic(lineno, parent_pat, name, toks):
|
|||||||
elif not (is_format and width == 0) and width != insnwidth:
|
elif not (is_format and width == 0) and width != insnwidth:
|
||||||
error(lineno, 'definition has {0} bits'.format(width))
|
error(lineno, 'definition has {0} bits'.format(width))
|
||||||
|
|
||||||
# Do not check for fields overlaping fields; one valid usage
|
# Do not check for fields overlapping fields; one valid usage
|
||||||
# is to be able to duplicate fields via import.
|
# is to be able to duplicate fields via import.
|
||||||
fieldmask = 0
|
fieldmask = 0
|
||||||
for f in flds.values():
|
for f in flds.values():
|
||||||
|
@ -69,7 +69,7 @@ mkdir -p "$DEST_DIR/lib/" # Copy the shared libraries here
|
|||||||
|
|
||||||
if ! make "-j$(nproc)" qemu-fuzz-i386; then
|
if ! make "-j$(nproc)" qemu-fuzz-i386; then
|
||||||
fatal "Build failed. Please specify a compiler with fuzzing support"\
|
fatal "Build failed. Please specify a compiler with fuzzing support"\
|
||||||
"using the \$CC and \$CXX environemnt variables"\
|
"using the \$CC and \$CXX environment variables"\
|
||||||
"\nFor example: CC=clang CXX=clang++ $0"
|
"\nFor example: CC=clang CXX=clang++ $0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ def error(*lines):
|
|||||||
def out(*lines, **kwargs):
|
def out(*lines, **kwargs):
|
||||||
"""Write a set of output lines.
|
"""Write a set of output lines.
|
||||||
|
|
||||||
You can use kwargs as a shorthand for mapping variables when formating all
|
You can use kwargs as a shorthand for mapping variables when formatting all
|
||||||
the strings in lines.
|
the strings in lines.
|
||||||
"""
|
"""
|
||||||
lines = [ l % kwargs for l in lines ]
|
lines = [ l % kwargs for l in lines ]
|
||||||
|
Loading…
Reference in New Issue
Block a user