diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-09-30 11:19:13 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 17:40:03 +0300 |
commit | 2a43dbdf9668dc9fbfc309e085eb0c7fa64c2f15 (patch) | |
tree | 25f40728d6126607405c4866ca6e60ca0728bb7d /test/py | |
parent | e878b53a79d1a4f06c7c03d706da6b2993e8ff41 (diff) | |
download | u-boot-2a43dbdf9668dc9fbfc309e085eb0c7fa64c2f15.tar.xz |
dm: Tidy up dump output when there are many devices
At present the 'Index' column of 'dm tree' assumes there is
two digits, this patch increase it to 3 digits.
It also aligns output of 'dm uclass', assuming the same 3 digits index.
The boards with CONFIG_PINCTRL_FULL activated have one pinconfig
by pin configuration, so they can have more than 100 devices
pinconfig (for example with stm32mp157c-ev1 board we have
106 pinconfig node).
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/tests/test_bind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/tests/test_bind.py b/test/py/tests/test_bind.py index ccf6d62ea8..2d48484c6a 100644 --- a/test/py/tests/test_bind.py +++ b/test/py/tests/test_bind.py @@ -13,7 +13,7 @@ def in_tree(response, name, uclass, drv, depth, last_child): else: leaf = leaf + '`' leaf = leaf + '-- ' + name - line = (' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$' + line = (' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$' .format(uclass, drv, leaf)) prog = re.compile(line) for l in lines: |