Skip to content

Commit aa0a649

Browse files
committed
genimport: show only proptags not propvals when no -p option is used
1 parent 598a7ea commit aa0a649

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/genimport.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ void tlog(const char *fmt, ...)
8383

8484
static void gi_dump_tpropval(unsigned int depth, const TAGGED_PROPVAL &tp)
8585
{
86-
if (g_show_props)
87-
tree(depth);
88-
auto s = tp.value_repr(g_show_props);
89-
tlog("%08xh:%s%s", tp.proptag, s.c_str(), g_show_props ? "\n" : ", ");
86+
if (!g_show_props) {
87+
tlog("%08xh,", tp.proptag);
88+
return;
89+
}
90+
tree(depth);
91+
tlog("%08xh:%s\n", tp.proptag, tp.value_repr(true).c_str());
9092
}
9193

9294
void gi_dump_tpropval_a(unsigned int depth, const TPROPVAL_ARRAY &props)

0 commit comments

Comments
 (0)