From 39d6a07862b99eb636128e903369faa73c44460b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 30 Aug 2009 00:27:13 +0000 Subject: [PATCH] Print the level for each dumped node, also serves as a delimiter, else all the PCI devices look like a mess. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32824 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/listdev/listdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/listdev/listdev.c b/src/bin/listdev/listdev.c index 81e61fad86..d3bcde2b95 100644 --- a/src/bin/listdev/listdev.c +++ b/src/bin/listdev/listdev.c @@ -113,6 +113,8 @@ dump_device(device_node_cookie *node, uint8 level) attr.value.raw.data = data; attr.value.raw.length = sizeof(data); + put_level(level); + printf("(%d)\n", level); while (dm_get_next_attr(&attr) == B_OK) { dump_attribute(&attr, level); }