| 724 | } |
| 725 | |
| 726 | void 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 | |
| 746 | void show_all_devs_tree(int debug_level, const char *msg) |
| 747 | { |
no test coverage detected