LibDeviceTree: Switch two calls to try_appendff

The rest of the calls used the fallible APIs already, but those were
missed.
This commit is contained in:
Undefine authored and Lucas Chollet committed 2026-11-06 20:34:06 +01:00
1 parent 6c0c3c2f17
commit adede105a1
1 file changed
+2 -2
@@ -205,9 +205,9 @@ ErrorOr<void> dump_flattened_device_tree_structure(FlattenedDeviceTreeHeader con
bool first_value = true;
while (!value_stream.is_eof()) {
if (first_value)
property.appendff("{:#08x}", TRY(value_stream.read_value<BigEndian<u32>>()));
TRY(property.try_appendff("{:#08x}", TRY(value_stream.read_value<BigEndian<u32>>())));
else
property.appendff(" {:#08x}", TRY(value_stream.read_value<BigEndian<u32>>()));
TRY(property.try_appendff(" {:#08x}", TRY(value_stream.read_value<BigEndian<u32>>())));
first_value = false;
}
outln("{}>;", property.string_view());