From f8c631b4afc9faeebe28b17e6c18bc8473ac3db9 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Thu, 18 Apr 2024 12:57:42 -0600 Subject: [PATCH] lib: ctraces: upgrade to v0.5.0 Signed-off-by: Eduardo Silva --- lib/ctraces/CMakeLists.txt | 2 +- lib/ctraces/src/ctr_decode_opentelemetry.c | 5 ++--- lib/ctraces/tests/decoding.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/ctraces/CMakeLists.txt b/lib/ctraces/CMakeLists.txt index af0500e0791..b71cb2196d7 100644 --- a/lib/ctraces/CMakeLists.txt +++ b/lib/ctraces/CMakeLists.txt @@ -26,7 +26,7 @@ endif() # CTraces Version set(CTR_VERSION_MAJOR 0) -set(CTR_VERSION_MINOR 4) +set(CTR_VERSION_MINOR 5) set(CTR_VERSION_PATCH 0) set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") diff --git a/lib/ctraces/src/ctr_decode_opentelemetry.c b/lib/ctraces/src/ctr_decode_opentelemetry.c index ba9f2eb03b1..768f86f0e0b 100644 --- a/lib/ctraces/src/ctr_decode_opentelemetry.c +++ b/lib/ctraces/src/ctr_decode_opentelemetry.c @@ -278,13 +278,12 @@ static int convert_bytes_value(struct opentelemetry_decode_value *ctr_val, break; case CTR_OPENTELEMETRY_TYPE_ARRAY: - result = cfl_array_append_bytes(ctr_val->cfl_arr, buf, len); + result = cfl_array_append_bytes(ctr_val->cfl_arr, buf, len, CFL_FALSE); break; case CTR_OPENTELEMETRY_TYPE_KVLIST: - result = cfl_kvlist_insert_bytes(ctr_val->cfl_kvlist, key, buf, len); + result = cfl_kvlist_insert_bytes(ctr_val->cfl_kvlist, key, buf, len, CFL_FALSE); break; - } if (result == -2) { diff --git a/lib/ctraces/tests/decoding.c b/lib/ctraces/tests/decoding.c index 81076d090f6..e798f15389a 100644 --- a/lib/ctraces/tests/decoding.c +++ b/lib/ctraces/tests/decoding.c @@ -81,7 +81,7 @@ static int generate_dummy_array_attribute_set(struct cfl_array **out_array, size } cfl_array_append_string(array, "string value"); - cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6); + cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE); cfl_array_append_bool(array, CTR_TRUE); cfl_array_append_int64(array, 303456); cfl_array_append_double(array, 1.23456); @@ -164,7 +164,7 @@ static int generate_dummy_kvlist_attribute_set(struct cfl_kvlist **out_kvlist, s return -3; } - result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6); + result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE); if (result != 0) { return -3;