Userland: Rename PCI slot to PCI device terminology
This commit is contained in:
parent
06d76a4717
commit
b48d8d1d6d
Notes:
sideshowbarker
2024-07-18 22:41:23 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/b48d8d1d6de Pull-request: https://github.com/SerenityOS/serenity/pull/5196 Issue: https://github.com/SerenityOS/serenity/issues/5190 Reviewed-by: https://github.com/supercomputer7
3 changed files with 5 additions and 5 deletions
|
@ -363,7 +363,7 @@ static bool procfs$pci(InodeIdentifier, KBufferBuilder& builder)
|
|||
auto obj = array.add_object();
|
||||
obj.add("seg", address.seg());
|
||||
obj.add("bus", address.bus());
|
||||
obj.add("slot", address.device());
|
||||
obj.add("device", address.device());
|
||||
obj.add("function", address.function());
|
||||
obj.add("vendor_id", id.vendor_id);
|
||||
obj.add("device_id", id.device_id);
|
||||
|
|
|
@ -507,9 +507,9 @@ NonnullRefPtr<GUI::Widget> build_pci_devices_tab()
|
|||
[](const JsonObject& object) {
|
||||
auto seg = object.get("seg").to_u32();
|
||||
auto bus = object.get("bus").to_u32();
|
||||
auto slot = object.get("slot").to_u32();
|
||||
auto device = object.get("device").to_u32();
|
||||
auto function = object.get("function").to_u32();
|
||||
return String::formatted("{:04x}:{:02x}:{:02x}.{}", seg, bus, slot, function);
|
||||
return String::formatted("{:04x}:{:02x}:{:02x}.{}", seg, bus, device, function);
|
||||
});
|
||||
pci_fields.empend(
|
||||
"Class", Gfx::TextAlignment::CenterLeft,
|
||||
|
|
|
@ -91,7 +91,7 @@ int main(int argc, char** argv)
|
|||
auto dev = value.as_object();
|
||||
auto seg = dev.get("seg").to_u32();
|
||||
auto bus = dev.get("bus").to_u32();
|
||||
auto slot = dev.get("slot").to_u32();
|
||||
auto device = dev.get("device").to_u32();
|
||||
auto function = dev.get("function").to_u32();
|
||||
auto vendor_id = dev.get("vendor_id").to_u32();
|
||||
auto device_id = dev.get("device_id").to_u32();
|
||||
|
@ -116,7 +116,7 @@ int main(int argc, char** argv)
|
|||
if (class_name.is_empty())
|
||||
class_name = String::format("%02x%02x", class_id, subclass_id);
|
||||
|
||||
outln(format, seg, bus, slot, function, class_name, vendor_name, device_name, revision_id);
|
||||
outln(format, seg, bus, device, function, class_name, vendor_name, device_name, revision_id);
|
||||
});
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue