diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-16 06:08:54 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-07-16 06:37:48 +0200 |
| commit | 2ffa63acefb9421671e41a4e17fe6ce95b1ddae9 (patch) | |
| tree | b14ccbf21df0ddeb564f8853f4c8b99d273fb1f9 /tools/process_headers.zig | |
| parent | 9a69aede0e250c136de5f1e1b33f072d4d744ffc (diff) | |
| download | zig-2ffa63acefb9421671e41a4e17fe6ce95b1ddae9.tar.gz zig-2ffa63acefb9421671e41a4e17fe6ce95b1ddae9.zip | |
tools: fix some bitrot
Diffstat (limited to 'tools/process_headers.zig')
| -rw-r--r-- | tools/process_headers.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/process_headers.zig b/tools/process_headers.zig index 0219f04d0e..51d4436540 100644 --- a/tools/process_headers.zig +++ b/tools/process_headers.zig @@ -266,10 +266,10 @@ pub fn main() !void { if (gop.found_existing) { max_bytes_saved += raw_bytes.len; gop.value_ptr.hit_count += 1; - std.debug.print("duplicate: {s} {s} ({:2})\n", .{ + std.debug.print("duplicate: {s} {s} ({B})\n", .{ libc_dir, rel_path, - std.fmt.fmtIntSizeDec(raw_bytes.len), + raw_bytes.len, }); } else { gop.value_ptr.* = Contents{ @@ -311,9 +311,9 @@ pub fn main() !void { std.debug.print("warning: libc target not found: {s}\n", .{libc_dir}); } } - std.debug.print("summary: {:2} could be reduced to {:2}\n", .{ - std.fmt.fmtIntSizeDec(total_bytes), - std.fmt.fmtIntSizeDec(total_bytes - max_bytes_saved), + std.debug.print("summary: {B} could be reduced to {B}\n", .{ + total_bytes, + total_bytes - max_bytes_saved, }); try std.fs.cwd().makePath(out_dir); @@ -343,8 +343,8 @@ pub fn main() !void { if (contender.hit_count > 1) { const this_missed_bytes = contender.hit_count * contender.bytes.len; missed_opportunity_bytes += this_missed_bytes; - std.debug.print("Missed opportunity ({:2}): {s}\n", .{ - std.fmt.fmtIntSizeDec(this_missed_bytes), + std.debug.print("Missed opportunity ({B}): {s}\n", .{ + this_missed_bytes, path_kv.key_ptr.*, }); } else break; |
