Bug 65636 - lspci error parsing -s argument
Summary: lspci error parsing -s argument
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: pciutils
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-29 08:35 UTC by Philip Pokorny
Modified: 2014-03-17 02:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-06-12 06:53:27 UTC
Embargoed:


Attachments (Terms of Use)
Patch to fix -s parsing and error message (1.15 KB, patch)
2002-05-29 08:37 UTC, Philip Pokorny
no flags Details | Diff

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!


Note You need to log in before you can comment on or make changes to this bug.