summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tape.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tape.zig b/src/tape.zig
index b1bcc31d..4db78b86 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -1213,7 +1213,8 @@ pub fn describe(bytes: []const u8, w: *std.Io.Writer) void {
const id = std.mem.bytesToValue(u16, payload[0..2]);
w.print("host {s}", .{if (id < host_fns.len) host_fns[id] else @tagName(@as(Site, @fromBackingInt(@intCast(id - host_fns.len))))}) catch {};
},
- .ret => if (payload.len <= 8) w.print("ret {x}", .{payload}) catch {} else w.print("ret ({d} bytes)", .{payload.len}) catch {},
+ // Its bytes when traced: which field of equal length differs.
+ .ret => if (payload.len <= 8 or libc.getenv("PARDES_REPLICA_TRACE") != null) w.print("ret {x}", .{payload}) catch {} else w.print("ret ({d} bytes)", .{payload.len}) catch {},
else => w.print("{t} ({d} bytes)", .{ kind, payload.len }) catch {},
}
w.writeByte('\n') catch {};