From: Philippe Proulx Date: Thu, 7 Apr 2016 03:57:36 +0000 (-0400) Subject: ust-metadata.c: nest/indent enumeration entries X-Git-Tag: v2.8.0~99 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1dbccf09e89a762905babd0bf0a17ad6e9233b7c;p=lttng-tools.git ust-metadata.c: nest/indent enumeration entries Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-metadata.c b/src/bin/lttng-sessiond/ust-metadata.c index 851fb99f4..c97013f43 100644 --- a/src/bin/lttng-sessiond/ust-metadata.c +++ b/src/bin/lttng-sessiond/ust-metadata.c @@ -262,6 +262,7 @@ int ust_metadata_enum_statedump(struct ust_registry_session *session, if (ret) { goto end; } + nesting++; /* Dump all entries */ for (i = 0; i < nr_entries; i++) { const struct ustctl_enum_entry *entry = &entries[i]; @@ -333,6 +334,7 @@ int ust_metadata_enum_statedump(struct ust_registry_session *session, goto end; } } + nesting--; sanitize_ctf_identifier(identifier, field_name); ret = print_tabs(session, nesting); if (ret) {