mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:08:10 +00:00
lspci: Convert String::format() => String::formatted()
This commit is contained in:
parent
7747bfe5c0
commit
3df0ecead8
1 changed files with 3 additions and 3 deletions
|
@ -111,11 +111,11 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vendor_name.is_empty())
|
if (vendor_name.is_empty())
|
||||||
vendor_name = String::format("%04x", vendor_id);
|
vendor_name = String::formatted("{:04x}", vendor_id);
|
||||||
if (device_name.is_empty())
|
if (device_name.is_empty())
|
||||||
device_name = String::format("%04x", device_id);
|
device_name = String::formatted("{:04x}", device_id);
|
||||||
if (class_name.is_empty())
|
if (class_name.is_empty())
|
||||||
class_name = String::format("%02x%02x", class_id, subclass_id);
|
class_name = String::formatted("{:02x}{:02x}", class_id, subclass_id);
|
||||||
|
|
||||||
outln(format, seg, bus, device, function, class_name, vendor_name, device_name, revision_id);
|
outln(format, seg, bus, device, function, class_name, vendor_name, device_name, revision_id);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue