Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Skip over option-like arguments in lspci -mm #1817

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

quantum5
Copy link
Contributor

@quantum5 quantum5 commented Jul 6, 2021

Description

lspci -mm may output stuff like -rc7 or -p02. According to the man page, this may appear anywhere in the line, so we need special logic to remove them.

Removing these fields allows the GPU subsystem name to be shown correctly on machines that output these option-like fields in different numbers or order.

Features

Fixes the GPU subsystem name not showing up on machines that do not have exactly one option-like fields.

@quantum5 quantum5 force-pushed the gpu-subsystem-remove-extra branch from 4ae1810 to fefc588 Compare July 6, 2021 19:53
This allows the GPU subsystem name to be shown correctly when lspci -mm
decides to output combination of stuff like -rc7 or -p02.
@quantum5 quantum5 force-pushed the gpu-subsystem-remove-extra branch from fefc588 to 3f12edb Compare July 7, 2021 01:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant