From 41a10bf039cf632b22ea3761d60a2dd5771973ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Mare=C5=A1?= Date: Sun, 5 Apr 2026 19:19:07 +0200 Subject: [PATCH] Man: Document what happens when multiple -s or -d options are given --- lspci.man | 8 ++++++++ setpci.man | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lspci.man b/lspci.man index 09eb3ad..938fac8 100644 --- a/lspci.man +++ b/lspci.man @@ -146,6 +146,14 @@ the fourth function of each device. Show only devices with specified vendor, device, class ID, and programming interface. The IDs are given in hexadecimal and may be omitted or given as "*", both meaning "any value". The class ID can contain "x" characters which stand for "any digit". +.PP +When +.B -s +and +.B -d +are combined, only devices that match both criteria are selected. When the same +option is used multiple times, the rightmost one overrides the others +and a warning is produced. .SS Other options .TP diff --git a/setpci.man b/setpci.man index f0c8f0c..1ec89da 100644 --- a/setpci.man +++ b/setpci.man @@ -115,8 +115,9 @@ When .B -s and .B -d -are combined, only devices that match both criteria are selected. When multiple -options of the same kind are specified, the rightmost one overrides the others. +are combined, only devices that match both criteria are selected. When the same +option is used multiple times, the rightmost one overrides the others +and a warning is produced. .SH OPERATIONS .PP -- 2.47.3