mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
lspci: Convert String::format() => String::formatted()
This commit is contained in:
parent
7747bfe5c0
commit
3df0ecead8
Notes:
sideshowbarker
2024-07-18 19:16:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3df0ecead83
1 changed files with 3 additions and 3 deletions
|
@ -111,11 +111,11 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
if (vendor_name.is_empty())
|
||||
vendor_name = String::format("%04x", vendor_id);
|
||||
vendor_name = String::formatted("{:04x}", vendor_id);
|
||||
if (device_name.is_empty())
|
||||
device_name = String::format("%04x", device_id);
|
||||
device_name = String::formatted("{:04x}", device_id);
|
||||
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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue