X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Fctf-meta-validate.c;h=74e02bb36653985d1c5e91c7170191b3441f1b94;hb=0746848ce8b40484254eeace3962a7654d01c7bc;hp=d778270c2ded2dcd341832f908ebe60299394803;hpb=ea14c7dd641ec094a4c63e2f6de59aab8cbb8603;p=babeltrace.git diff --git a/src/plugins/ctf/common/metadata/ctf-meta-validate.c b/src/plugins/ctf/common/metadata/ctf-meta-validate.c index d778270c..74e02bb3 100644 --- a/src/plugins/ctf/common/metadata/ctf-meta-validate.c +++ b/src/plugins/ctf/common/metadata/ctf-meta-validate.c @@ -12,8 +12,9 @@ * all copies or substantial portions of the Software. */ +#define BT_LOG_OUTPUT_LEVEL log_level #define BT_LOG_TAG "PLUGIN/CTF/META/VALIDATE" -#include "logging.h" +#include "logging/log.h" #include #include "common/macros.h" @@ -26,7 +27,8 @@ #include "ctf-meta-visitors.h" static -int validate_stream_class(struct ctf_stream_class *sc) +int validate_stream_class(struct ctf_stream_class *sc, + bt_logging_level log_level) { int ret = 0; struct ctf_field_class_int *int_fc; @@ -186,7 +188,8 @@ end: } BT_HIDDEN -int ctf_trace_class_validate(struct ctf_trace_class *ctf_tc) +int ctf_trace_class_validate(struct ctf_trace_class *ctf_tc, + bt_logging_level log_level) { int ret = 0; struct ctf_field_class_int *int_fc; @@ -332,7 +335,7 @@ int ctf_trace_class_validate(struct ctf_trace_class *ctf_tc) struct ctf_stream_class *sc = ctf_tc->stream_classes->pdata[i]; - ret = validate_stream_class(sc); + ret = validate_stream_class(sc, log_level); if (ret) { BT_LOGE("Invalid stream class: sc-id=%" PRIu64, sc->id); goto invalid;