mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 21:12:43 +00:00
The Display implementation for Vendor was forwarding directly to Debug printing, resulting in raw hex values instead of PCI Vendor strings. Improve things by doing a stringify!() call for each PCI Vendor item. This now prints symbolic names such as "NVIDIA", instead of "Vendor(0x10de)". It still falls back to Debug formatting for unknown class values. Suggested-by: Danilo Krummrich <[email protected]> Signed-off-by: John Hubbard <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> [ Remove #[inline] for Vendor::fmt(). - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>