diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 12:20:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 3f4ba3490904da77c4b244c21017fcf94f3bb198 (patch) | |
| tree | 52338dcb3b7b1dea8421335b8f5d5e9facbaa7f6 /src/ninep/events.zig | |
| parent | 267f48d215366fdf3bb90d655e3af33f723a6f94 (diff) | |
| download | pardes-3f4ba3490904da77c4b244c21017fcf94f3bb198.tar.gz pardes-3f4ba3490904da77c4b244c21017fcf94f3bb198.zip | |
A look miss said again is its err record counted, as any repeated err is
Look's miss pushed its err record plain, so a script retrying one look filled the log with the same line, where other errs are counted (x2).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep/events.zig')
| -rw-r--r-- | src/ninep/events.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ninep/events.zig b/src/ninep/events.zig index add0d750..570cae78 100644 --- a/src/ninep/events.zig +++ b/src/ninep/events.zig @@ -181,6 +181,14 @@ pub fn noteMessage(p: *Pardes, serial: u32, said: []const u8) void { /// answers nothing: a per-pane readable error file would be a second. /// `dump <path>` when a Dump is written, `restore <path>` first in a /// Restore's replacement. +/// `notePath` for an `err` record: the same one again straight after is +/// counted, `(x2)`, as every err is. +pub fn noteErrCounted(p: *Pardes, text: []const u8) void { + bootFirst(p); + var buf: [pardes.memory.limits.host_path_cap + 16]u8 = undefined; + pushCounting(p, std.fmt.bufPrint(&buf, "err {s}\n", .{text}) catch return); +} + pub fn notePath(p: *Pardes, what: []const u8, path: []const u8) void { bootFirst(p); var buf: [pardes.memory.limits.host_path_cap + 16]u8 = undefined; |
