dm: fix alignment in DM dump when 2-digit index exists
PATCH 1/1 dm: fix alignment in DM dump when 2-digit index exists
If there exist 10 or more nodes of the same type, the alignment of "dm tree" command is broken.
---
drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/core/dump.c +1 -1
@@ -16,7 +16,7 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)struct udevice *child;/* print the first 11 characters to not break the tree-format. */ -printf (" %-10.10s %d [ %c ] %-10.10s " , dev->uclass->uc_drv->name, +printf (" %-10.10s %2d [ %c ] %-10.10s " , dev->uclass->uc_drv->name,dev_get_uclass_index (dev,NULL ), dev->flags &DM_FLAG_ACTIVATED ?'+' :' ' , dev->driver->name);
Signature · 1 line
2.7.4
PATCH 1/1 dm: fix alignment in DM dump when 2-digit index exists
Quoted 2 lines · Masahiro Yamada
If there exist 10 or more nodes of the same type, the alignment of "dm tree" command is broken.
But what if there exist 100 or mode nodes of the same type ? :-)
Quoted 20 lines
Signed-off-by Masahiro Yamada <[email protected]>---
drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/core/dump.c +1
-1@@ -16,7 +16,7 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)struct udevice *child;/* print the first 11 characters to not break the tree-format. */ -printf (" %-10.10s %d [ %c ] %-10.10s " , dev->uclass->uc_drv->name, +printf (" %-10.10s %2d [ %c ] %-10.10s " , dev->uclass->uc_drv->name,dev_get_uclass_index (dev,NULL ), dev->flags &DM_FLAG_ACTIVATED ?'+' :' ' , dev->driver->name);
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 dm: fix alignment in DM dump when 2-digit index exists
In reply to Masahiro YamadaQuoted 10 lines · Masahiro Yamada
If there exist 10 or more nodes of the same type, the alignment of "dm tree" command is broken.
Signed-off-by Masahiro Yamada <[email protected]>---
drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 1/1 dm: fix alignment in DM dump when 2-digit index exists
In reply to Masahiro YamadaHi Masahiro,
Quoted 8 lines · Masahiro Yamada
If there exist 10 or more nodes of the same type, the alignment of "dm tree" command is broken.
Signed-off-by Masahiro Yamada <[email protected]>---
drivers/core/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This seems to break the test:
test_bind_unbind_with_node
Can you please check it?
Regards,
Simon