From 1e26d885d31d34a00949f28250d6c482e9b38f57 Mon Sep 17 00:00:00 2001 From: Yusuf Bham Date: Wed, 18 Feb 2026 20:04:18 -0500 Subject: [PATCH] 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. --- lib/std/os/uefi.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/std/os/uefi.zig b/lib/std/os/uefi.zig index d8f08911b3eb595a8b29ae8546a5f8dd757e3eb3..f8abb8d98974d62d060ad490fb98392cc90df570 100644 --- a/lib/std/os/uefi.zig +++ b/lib/std/os/uefi.zig @@ -112,12 +112,12 @@ pub const Guid = extern struct { const time_high_and_version = @byteSwap(self.time_high_and_version); return writer.print("{x:0>8}-{x:0>4}-{x:0>4}-{x:0>2}{x:0>2}-{x}", .{ - std.mem.asBytes(&time_low), - std.mem.asBytes(&time_mid), - std.mem.asBytes(&time_high_and_version), - std.mem.asBytes(&self.clock_seq_high_and_reserved), - std.mem.asBytes(&self.clock_seq_low), - std.mem.asBytes(&self.node), + time_low, + time_mid, + time_high_and_version, + self.clock_seq_high_and_reserved, + self.clock_seq_low, + self.node, }); } -- 2.54.0