authorgravatar for git@fiftysix.devYusuf Bham <git@fiftysix.dev> 2026-02-18 20:04:18-05:00
committergravatar for git@fiftysix.devYusuf Bham <git@fiftysix.dev> 2026-02-18 20:19:50-05:00
log1e26d885d31d34a00949f28250d6c482e9b38f57
tree9db47c15c3eaa5119dad73dc722dcdffb12c9d88
parent0e3c6514a4d1f89498bf411b58131d129218807f

uefi(guid): don't use std.mem.asBytes in format

Using std.mem.asBytes causes a panic when format is called as slices can no longer have hex options when formatting, so instead just print the ints.

1 files changed, 6 insertions(+), 6 deletions(-)

lib/std/os/uefi.zig+6-6
......@@ -112,12 +112,12 @@ pub const Guid = extern struct {
112112 const time_high_and_version = @byteSwap(self.time_high_and_version);
113113
114114 return writer.print("{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x}", .{
115 std.mem.asBytes(&time_low),
116 std.mem.asBytes(&time_mid),
117 std.mem.asBytes(&time_high_and_version),
118 std.mem.asBytes(&self.clock_seq_high_and_reserved),
119 std.mem.asBytes(&self.clock_seq_low),
120 std.mem.asBytes(&self.node),
115 time_low,
116 time_mid,
117 time_high_and_version,
118 self.clock_seq_high_and_reserved,
119 self.clock_seq_low,
120 self.node,
121121 });
122122 }
123123