X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-field-convert.cpp;h=10736611cfff317ef6d365a10386975425901fcd;hb=dc88217e78259cb6b35fbaf6b85ad5aed6a37023;hp=3b8eb2f517e20cceb577bc2e6c58b880963fc98a;hpb=9d89db29f3bf6c826293350f8f1a8559ec906b24;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-field-convert.cpp b/src/bin/lttng-sessiond/ust-field-convert.cpp index 3b8eb2f51..10736611c 100644 --- a/src/bin/lttng-sessiond/ust-field-convert.cpp +++ b/src/bin/lttng-sessiond/ust-field-convert.cpp @@ -15,8 +15,17 @@ namespace lst = lttng::sessiond::trace; namespace lsu = lttng::sessiond::ust; -namespace { +/* + * fmtlib helper that must be under the same namespace as lttng_ust_ctl_abstract_types + * (global). + */ +static int format_as(lttng_ust_ctl_abstract_types type) +{ + return fmt::underlying(type); +} + +namespace { /* * Type enclosing the session information that may be required during the decoding * of the lttng_ust_ctl_field array provided by applications on registration of