diff options
| author | 2025-09-24 18:33:58 -0700 | |
|---|---|---|
| committer | 2025-09-25 15:51:16 +0200 | |
| commit | d53ea977adf913a6e5024323e6b7e02326d4453c (patch) | |
| tree | 18edfdeebfe4d8cd8735784f0245cb8ffb538ae9 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | rust: pci: fix incorrect platform reference in PCI driver probe doc comment (diff) | |
| download | wireguard-linux-d53ea977adf913a6e5024323e6b7e02326d4453c.tar.xz wireguard-linux-d53ea977adf913a6e5024323e6b7e02326d4453c.zip | |
rust: pci: display symbolic PCI class names
The Display implementation for Class was forwarding directly to Debug
printing, resulting in raw hex values instead of PCI Class strings.
Improve things by doing a stringify!() call for each PCI Class item.
This now prints symbolic names such as "DISPLAY_VGA", instead of
"Class(0x030000)". It still falls back to Debug formatting for unknown
class values.
Suggested-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
