From 9ce695a6f595a5a79957403d6c0dae36dd64bebe Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 12 May 2022 13:23:48 -0400 Subject: [PATCH] Fix: bt2::CommonStreamClass: use correct memory error status Signed-off-by: Philippe Proulx Change-Id: I325d41eeaa4f81df5ad6177fc935bffe49416b34 Reviewed-on: https://review.lttng.org/c/babeltrace/+/8025 Reviewed-on: https://review.lttng.org/c/babeltrace/+/10796 Tested-by: jenkins --- src/cpp-common/bt2/trace-ir.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp-common/bt2/trace-ir.hpp b/src/cpp-common/bt2/trace-ir.hpp index 8677fde2..87f51b9a 100644 --- a/src/cpp-common/bt2/trace-ir.hpp +++ b/src/cpp-common/bt2/trace-ir.hpp @@ -1718,7 +1718,7 @@ public: const auto status = bt_stream_class_set_packet_context_field_class(this->libObjPtr(), fc.libObjPtr()); - if (status == BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) { + if (status == BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) { throw LibMemoryError {}; } } @@ -1752,7 +1752,7 @@ public: const auto status = bt_stream_class_set_event_common_context_field_class(this->libObjPtr(), fc.libObjPtr()); - if (status == BT_EVENT_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) { + if (status == BT_STREAM_CLASS_SET_FIELD_CLASS_STATUS_MEMORY_ERROR) { throw LibMemoryError {}; } } -- 2.34.1