projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ctf_enum_auto() for autoincrementing enumeration values
[lttng-modules.git]
/
lttng-events.c
diff --git
a/lttng-events.c
b/lttng-events.c
index bcf59da1df5d8916ae7e85c01f9e5a6639743d25..ef934374b7442845d6bcb4e3d7fb798742eb8eda 100644
(file)
--- a/
lttng-events.c
+++ b/
lttng-events.c
@@
-1955,8
+1955,19
@@
int _lttng_enum_statedump(struct lttng_session *session,
if (ret)
goto end;
}
if (ret)
goto end;
}
+ ret = lttng_metadata_printf(session, "\"");
+ if (ret)
+ goto end;
+
+ if (entry->options.is_auto) {
+ ret = lttng_metadata_printf(session, ",\n");
+ if (ret)
+ goto end;
+ continue;
+ }
+
ret = lttng_metadata_printf(session,
ret = lttng_metadata_printf(session,
- "
\"
= ");
+ " = ");
if (ret)
goto end;
if (entry->start.signedness)
if (ret)
goto end;
if (entry->start.signedness)
This page took
0.023846 seconds
and
4
git commands to generate.