From b79c252d17ac2597d5baaa7eb8caf12c8ceeb996 Mon Sep 17 00:00:00 2001 From: werner Date: Sat, 15 Aug 2009 22:06:51 +0000 Subject: [PATCH] - dump.c didn't complete vector names used in measurements, causing them to be lost and producing an invalid fpd file git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5455 99fdad57-331a-0410-800a-d7fa5415bdb3 --- dump.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dump.c b/dump.c index 01cab34..d5e981a 100644 --- a/dump.c +++ b/dump.c @@ -355,10 +355,14 @@ static const char *meas_type_name[mt_n] = { static char *print_meas_base(struct vec *base) { + char *name, *res; + + name = base_name(base, NULL); if (base->frame == root_frame) - return stralloc_printf("%s", base->name); - else - return stralloc_printf("%s.%s", base->frame->name, base->name); + return name; + res = stralloc_printf("%s.%s", base->frame->name, name); + free(name); + return res; }