]> git.baikalelectronics.ru Git - uboot.git/commit
dm: Tidy up 'dm tree' output when there are many devices
authorSimon Glass <sjg@chromium.org>
Thu, 6 Dec 2018 01:42:52 +0000 (18:42 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Jan 2019 00:47:13 +0000 (17:47 -0700)
commitecbe1ef078485903dfd4f44aae3214e7e9a916d0
treee3ed9b136f5c1f9c273c3bd35df5dbd343139ef8
parentc52e73abe52806d8d00328877d992696b19724df
dm: Tidy up 'dm tree' output when there are many devices

At present the 'Index' column assumes there is only one digit. But on some
devices (e.g. snow) there are a lot of regulators and GPIO banks. Adjust
the output to allow for two digits without messing up the display.

Also capatalise the heading to match.

Fixes: c86c8dd7a1 (dm: core: Widen the dump tree to show more of the
driver's name.)

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Liviu Dudau <liviu.dudau@foss.arm.com>
drivers/core/dump.c
test/py/tests/test_bind.py