Skip to content

Commit

Permalink
fix: use correct function to print 'enum bt_ctf_scope'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mjeanson authored and jgalar committed Jan 24, 2020
1 parent 3302c66 commit 003f30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctf-writer/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 003f30d

Please sign in to comment.