Cleanup: use ctf_scope_string function to print `enum ctf_scope` vars
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 18 Dec 2018 21:02:57 +0000 (16:02 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 12 Apr 2019 21:26:17 +0000 (17:26 -0400)
commitcf823c30d11c786446f0d0e7c1fd0aac868fe84a
tree7f37e2049ac24bc4f1fa0c222144b0c7159f22f1
parent1ba215fccd1b46fbacab8fdbf8ded5839fc33418
Cleanup: use ctf_scope_string function to print `enum ctf_scope` vars

This fixes the following Clang warning:
  ctf-meta-resolve.c:278:28: error: implicit conversion from enumeration type 'enum ctf_scope' to different enumeration type 'enum bt_scope' [-Werror,-Wenum-conversion]
                                  bt_common_scope_string(scope));
                                  ~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
  ../../../../include/babeltrace/logging-internal.h:854:46: note: expanded from macro 'BT_LOGV'
                          BT_LOG_WRITE(BT_LOG_VERBOSE, _BT_LOG_TAG, __VA_ARGS__)
                                                                    ^~~~~~~~~~~
  ../../../../include/babeltrace/logging-internal.h:818:18: note: expanded from macro 'BT_LOG_WRITE'
                                                          lvl, tag, __VA_ARGS__); \

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/ctf/common/metadata/ctf-meta-resolve.c
This page took 0.027141 seconds and 5 git commands to generate.