core: dump: add "*" for node from U-Boot dtb

This is useful for debugging.

Change-Id: If6a6e29053c1519ec40ccbcb183e35ffd81c64e8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-06-04 14:40:24 +08:00 committed by Jianhong Chen
parent 054229abb7
commit b07f31ddba
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ static void show_devices(struct udevice *dev, int depth, int last_flag)
} }
} }
printf("%s\n", dev->name); printf("%s %s\n", dev->name,
dev_read_bool(dev, "u-boot,dm-pre-reloc") ? "*" : "");
list_for_each_entry(child, &dev->child_head, sibling_node) { list_for_each_entry(child, &dev->child_head, sibling_node) {
is_last = list_is_last(&child->sibling_node, &dev->child_head); is_last = list_is_last(&child->sibling_node, &dev->child_head);