Skip to content

Commit e836695

Browse files
committed
scripts: fix various typos
Fix various typos under scripts/ Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 30f52a7 commit e836695

24 files changed

Lines changed: 31 additions & 30 deletions

File tree

scripts/ci/test_plan.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
if "ZEPHYR_BASE" not in os.environ:
2828
exit("$ZEPHYR_BASE environment variable undefined.")
2929

30-
# These are globaly used variables. They are assigned in __main__ and are visible in further methods
31-
# however, pylint complains that it doesn't recognized them when used (used-before-assignment).
30+
# These are globally used variables. They are assigned in __main__ and are
31+
# visible in further methods however, pylint complains that it doesn't
32+
# recognized them when used (used-before-assignment).
3233
zephyr_base = Path(os.environ['ZEPHYR_BASE'])
3334
repository_path = zephyr_base
3435
repo_to_scan = Repo(zephyr_base)

scripts/ci/upload_test_results_es.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This script uploads ``twister.json`` file to Elasticsearch index for reporting and analysis.
88
see https://kibana.zephyrproject.io/
99
10-
The script expects two evironment variables with the Elasticsearch server connection parameters:
10+
The script expects two environment variables with the Elasticsearch server connection parameters:
1111
`ELASTICSEARCH_SERVER`
1212
`ELASTICSEARCH_KEY`
1313
"""

scripts/coccinelle/find_dev_usage.cocci

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Uses a python database (a dict) to find where const struct device
55
// variable are being used in zephyr functions and, if it's being in place
6-
// of a void*, it will print an ERROR for loosing the const qualifier.
6+
// of a void*, it will print an ERROR for losing the const qualifier.
77
// If it's being used on an unknown functions from an external module such
88
// as a HAL, it will print a WARNING in order to check if the const qualifier
99
// is not lost.
@@ -23,7 +23,7 @@ import pickle
2323
def check_and_report(F, f, D, nb_args, p):
2424
if f in f_void and int(nb_args) in f_void[f]:
2525
msg = "ERROR: in {} calling {} param with {}, \
26-
loosing const qualifier, please wrap".format(F, f, D)
26+
losing const qualifier, please wrap".format(F, f, D)
2727
coccilib.report.print_report(p[0], msg)
2828
elif f not in f_void and f not in f_other and not f.isupper():
2929
msg = "WARNING: in {} calling {} param with {}, \

scripts/coccinelle/find_functions.cocci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// of the void* parameter in the first dict, and the actual number of
1212
// parameters in the second.
1313
// Then find_dev_usage.cocci can be used to verify if device instance
14-
// are not loosing their const qualifier.
14+
// are not losing their const qualifier.
1515

1616
virtual patch
1717
virtual report

scripts/dts/gen_defines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def enum_macros(prop: edtlib.Property, macro: str):
833833
)
834834

835835
for i, subval in enumerate(val):
836-
# make sure the subval is a formated right.
836+
# make sure the subval is formatted right.
837837
if isinstance(subval, str):
838838
subval = str2ident(subval)
839839
# DT_N_<node-id>_P_<prop-id>_IDX_<i>_EXISTS

scripts/dts/python-devicetree/tests/test_dtlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ def test_names():
23052305
/dts-v1/;
23062306
23072307
/ {
2308-
// A leading \ is accepted but ignored in node/propert names
2308+
// A leading \ is accepted but ignored in node/property names
23092309
\aA0,._+*#?- = &_, &{/aA0,._+@-};
23102310
23112311
// Names that overlap with operators and integer literals

scripts/dts/python-devicetree/tests/test_edtlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ def test_dependencies():
14471447
assert edt.get_node("/in-dir-1") in edt.get_node("/").required_by
14481448

14491449
def test_child_dependencies():
1450-
'''Test dependencies relashionship with child nodes propagated to parent'''
1450+
'''Test dependencies relationship with child nodes propagated to parent'''
14511451
with from_here():
14521452
edt = edtlib.EDT("test.dts", ["test-bindings"])
14531453

scripts/footprint/pack_as_twister.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
for analysis, visualization, etc.
1212
1313
The memory footprint input data files (rom.json, ram.json) are expected in directories
14-
sturctured as 'ZEPHYR_VERSION/APPLICATION/FEATURE/BOARD' under the input path(s).
14+
structured as 'ZEPHYR_VERSION/APPLICATION/FEATURE/BOARD' under the input path(s).
1515
The BOARD name itself can be in HWMv2 format as 'BOARD/SOC' or 'BOARD/SOC/VARIANT'
1616
with the corresponding sub-directories.
1717

scripts/instrumentation/zaru.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def generate_reverse_symbol_lookup(addr_to_symbol):
9191
"""Generate a reverse symbol lookup dict.
9292
9393
Given a dict of ELF symbols indexed by the symbol address, return the same
94-
dict but indexed by the symbols intead of by the symbol address, allowing
94+
dict but indexed by the symbols instead of by the symbol address, allowing
9595
a reverse lookup, i.e. look up for a symbol address given a symbol.
9696
"""
9797

@@ -1047,7 +1047,7 @@ def trace(args):
10471047
# 'data' (binary) file and 'metadata' file written in the TSDL, hence it's not possible to
10481048
# specify an alternative path for 'data' or 'metadata' files. Thus here a temporary dir is
10491049
# created and a copy of the 'metadata' is copied to it together with the binary stream extracted
1050-
# from the target, which is saved as 'data' file. The tempory dir is then passed to the
1050+
# from the target, which is saved as 'data' file. The temporary dir is then passed to the
10511051
# babeltrace methods.
10521052
with tempfile.TemporaryDirectory() as tmpdir:
10531053
if args.verbose:

scripts/kconfig/kconfigfunctions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ def dt_highest_controller_irq_number(kconfig, _, path, irq_cell_name):
11201120

11211121
def normalize_upper(kconf, _, string):
11221122
"""
1123-
Normalize the string, so that the string only contains alpha-numeric
1123+
Normalize the string, so that the string only contains alphanumeric
11241124
characters or underscores. All non-alpha-numeric characters are replaced
11251125
with an underscore, '_'.
11261126
When string has been normalized it will be converted into upper case.

0 commit comments

Comments
 (0)