| ... | @@ -48,7 +48,7 @@ pub inline fn trace_begin(ctx: tracer.Ctx, comptime ifmt: []const u8, iargs: any | ... | @@ -48,7 +48,7 @@ pub inline fn trace_begin(ctx: tracer.Ctx, comptime ifmt: []const u8, iargs: any |
| 48 | .pid = @intCast(pid), | 48 | .pid = @intCast(pid), |
| 49 | .tid = @intCast(tid), | 49 | .tid = @intCast(tid), |
| 50 | .time = @floatFromInt(std.time.microTimestamp()), | 50 | .time = @floatFromInt(std.time.microTimestamp()), |
| 51 | .name_len = @intCast(std.fmt.count(fmt, args ++ iargs)), | 51 | .name_len = @truncate(std.fmt.count(fmt, args ++ iargs)), |
| 52 | .args_len = 0, | 52 | .args_len = 0, |
| 53 | }) catch return; | 53 | }) catch return; |
| 54 | buffered_writer.writer().print(fmt, args ++ iargs) catch return; | 54 | buffered_writer.writer().print(fmt, args ++ iargs) catch return; |