From 0af8aabdf68473f1407c116e5107bfdbdc03e0d8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Szczepkowicz Date: Tue, 13 Aug 2024 12:44:46 +0200 Subject: [PATCH] #2187: Use proper constant when adding a user note --- src/vt/trace/trace_lite.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vt/trace/trace_lite.cc b/src/vt/trace/trace_lite.cc index 336894bbbe..87f2a7a5ac 100644 --- a/src/vt/trace/trace_lite.cc +++ b/src/vt/trace/trace_lite.cc @@ -304,7 +304,7 @@ void TraceLite::addUserNoteBracketedBeginTime( logEvent(LogType{begin, begin, type, note, event}); // Save event log for fixing up the end time later - if (event != no_user_event_id) { + if (event != no_trace_event) { auto* last_trace = getLastTraceEvent(); incomplete_notes_[event].push(last_trace); } @@ -361,7 +361,7 @@ void TraceLite::addUserNoteBracketedEndTime( ); // Fixup end time of the note - if (event != no_user_event_id) { + if (event != no_trace_event) { updateNoteEndTime(event, end, &new_note); } }