fix: use correct function to print 'enum bt_ctf_scope'
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 23 Jan 2020 15:47:34 +0000 (10:47 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Jan 2020 18:45:48 +0000 (13:45 -0500)
Building with GCC10 results in the following error:

implicit conversion from 'enum bt_ctf_scope' to 'enum bt_field_path_scope' [-Werror=enum-conversion]

Change-Id: Id1144231f8439444696e4683dff2b0abf0d26d60
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2851
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/ctf-writer/utils.h

index 1b961eb63bc2765d3fafbd005073321c164628b3..816c0ad6a53389ca4c908f124c1441f29f1446a1 100644 (file)
@@ -203,7 +203,7 @@ GString *bt_ctf_field_path_string(struct bt_ctf_field_path *path)
                goto end;
        }
 
-       g_string_append_printf(str, "[%s", bt_common_scope_string(
+       g_string_append_printf(str, "[%s", bt_ctf_scope_string(
                bt_ctf_field_path_get_root_scope(path)));
 
        for (i = 0; i < bt_ctf_field_path_get_index_count(path); i++) {
This page took 0.025614 seconds and 4 git commands to generate.