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.
This commit is contained in:
Yusuf Bham 2026-02-18 20:04:18 -05:00
parent 0e3c6514a4
commit 1e26d885d3

View file

@ -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,
});
}