From f840f43cde57f67307159274045f750de9581ffe Mon Sep 17 00:00:00 2001 From: Amit L Date: Fri, 6 Oct 2023 15:10:05 -0700 Subject: [PATCH] fix(x86_64): fix `TraceSubscriber` emitting enter instead of exit (#296) Currently, the `x86_64` `TraceSubscriber` incorrectly writes a duplicate `Enter` message to the serial port when a span is exited, instead of an `Exit` message. This commit fixes that. Fixes #290 --- platforms/x86_64/core/src/trace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/x86_64/core/src/trace.rs b/platforms/x86_64/core/src/trace.rs index 832fea0d..15bdeb8f 100644 --- a/platforms/x86_64/core/src/trace.rs +++ b/platforms/x86_64/core/src/trace.rs @@ -87,7 +87,7 @@ where } fn exit(&self, span: &span::Id) { - with_serial(|serial| serial.enter(span)); + with_serial(|serial| serial.exit(span)); } fn record_follows_from(&self, _: &span::Id, _: &span::Id) {