Bug 65636

Summary: lspci error parsing -s argument
Product: [Retired] Red Hat Linux Reporter: Philip Pokorny <ppokorny>
Component: pciutilsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: jwright, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-06-12 06:53:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix -s parsing and error message none

Description Philip Pokorny 2002-05-29 08:35:23 UTC
Description of Problem:
lspci -s command line option does not parse the legal slot 0:1f.1 correctly. 
Error message says invalid argument to -f option.  -f is not a valid option to
lspci...

Investigation of the code shows a typo in the error reporting and a range error
in the ..._filter_slot function whose ranges are INCLUSIVE at both ends.

Version-Release number of selected component (if applicable):
pciutils-2.1.9-2

How Reproducible:
Always

Steps to Reproduce:
1. lspci -s 0:1f

Actual Results:

lspci: -f: Invalid slot number

Expected Results:

PCI data for slot 0:1f.*

Additional Information:

Comment 1 Philip Pokorny 2002-05-29 08:37:17 UTC
Created attachment 58804 [details]
Patch to fix -s parsing and error message

Comment 2 Bill Nottingham 2002-07-19 01:20:25 UTC
Fixed in 2.10-1 (where this patch was applied upstream). Thanks!