]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Tidy up dump output when there are many devices
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 30 Sep 2019 08:19:13 +0000 (10:19 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:03 +0000 (08:40 -0600)
commit2a43dbdf9668dc9fbfc309e085eb0c7fa64c2f15
tree25f40728d6126607405c4866ca6e60ca0728bb7d
parente878b53a79d1a4f06c7c03d706da6b2993e8ff41
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>
drivers/core/dump.c
test/py/tests/test_bind.py