mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
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());
|
||||
|
||||
Reference in new issue
Block a user