aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/grt/ghwlib.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/grt/ghwlib.c b/src/grt/ghwlib.c
index 1b3c4e683..0f7e50224 100644
--- a/src/grt/ghwlib.c
+++ b/src/grt/ghwlib.c
@@ -1038,9 +1038,10 @@ print_name (struct ghw_hie *hie, int full_names)
}
putchar (' ');
+ putchar ('/');
for (i = 0; i < depth; ++i)
{
- printf ("%s%s", i ? "." : "", buf[i]->name);
+ printf ("%s%s", i ? "/" : "", buf[i]->name);
}
putchar (':');
putchar (' ');
@@ -1060,8 +1061,9 @@ ghw_disp_hie (struct ghw_handler *h, struct ghw_hie *top)
while (1)
{
- for (i = 0; i < indent; i++)
- fputc (' ', stdout);
+ if (0 == h->flag_full_names)
+ for (i = 0; i < indent; i++)
+ fputc (' ', stdout);
printf ("%s", ghw_get_hie_name (hie));
switch (hie->kind)
@@ -1145,7 +1147,6 @@ ghw_read_eoh (struct ghw_handler *h)
return 0;
}
-
int
ghw_read_base (struct ghw_handler *h)
{