MCPcopy Create free account
hub / github.com/coreboot/coreboot / show_devs_tree

Function show_devs_tree

src/device/device_util.c:726–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void show_devs_tree(const struct device *dev, int debug_level, int depth)
727{
728 char depth_str[20];
729 int i;
730 struct device *sibling;
731
732 for (i = 0; i < depth; i++)
733 depth_str[i] = ' ';
734 depth_str[i] = '\0';
735
736 printk(debug_level, "%s%s: enabled %d\n",
737 depth_str, dev_path(dev), dev->enabled);
738
739 if (!dev->downstream)
740 return;
741
742 for (sibling = dev->downstream->children; sibling; sibling = sibling->sibling)
743 show_devs_tree(sibling, debug_level, depth + 1);
744}
745
746void show_all_devs_tree(int debug_level, const char *msg)
747{

Callers 3

show_all_devs_treeFunction · 0.85
show_devs_subtreeFunction · 0.85
dev_enumerateFunction · 0.85

Calls 2

dev_pathFunction · 0.85
printkFunction · 0.50

Tested by

no test coverage detected