From 003f30daef99cca03c6c8bce4224e2e6d3d0480f Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 23 Jan 2020 10:47:34 -0500 Subject: [PATCH] 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 --- src/ctf-writer/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.34.1