From: Michael Jeanson Date: Thu, 23 Jan 2020 15:47:34 +0000 (-0500) Subject: fix: use correct function to print 'enum bt_ctf_scope' X-Git-Tag: v2.0.1~12 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=003f30daef99cca03c6c8bce4224e2e6d3d0480f fix: use correct function to print 'enum bt_ctf_scope' 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2851 Reviewed-by: Simon Marchi Tested-by: jenkins --- diff --git a/src/ctf-writer/utils.h b/src/ctf-writer/utils.h index 1b961eb6..816c0ad6 100644 --- a/src/ctf-writer/utils.h +++ b/src/ctf-writer/utils.h @@ -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++) {