Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148755562
D52311.id161302.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
D52311.id161302.diff
View Options
diff --git a/usr.sbin/fwget/pci/pci b/usr.sbin/fwget/pci/pci
--- a/usr.sbin/fwget/pci/pci
+++ b/usr.sbin/fwget/pci/pci
@@ -27,7 +27,7 @@
pci_get_class()
{
- local hexclass=$(echo $1 | sed 's/.*class=\(0x[0-9a-z]\{2\}\).*/\1/')
+ local hexclass=$(echo $1 | sed 's/.*class=\(0x[0-9a-f]\{2\}\).*/\1/')
case "${hexclass}" in
0x00) echo "old" ;; # built before class codes were finalized
0x02) echo "network" ;;
@@ -38,7 +38,7 @@
pci_get_vendor()
{
- local hexvendor=$(echo $1 | sed 's/.*\ vendor=\(0x[0-9a-z]*\).*/\1/')
+ local hexvendor=$(echo $1 | sed 's/.*\ vendor=\(0x[0-9a-f]*\).*/\1/')
case "${hexvendor}" in
0x1002) echo "amd" ;;
@@ -52,7 +52,7 @@
pci_get_device()
{
- local hexdevice=$(echo $1 | sed 's/.*\ device=\(0x[0-9a-z]*\).*/\1/')
+ local hexdevice=$(echo $1 | sed 's/.*\ device=\(0x[0-9a-f]*\).*/\1/')
echo ${hexdevice}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 1:34 AM (3 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30052492
Default Alt Text
D52311.id161302.diff (868 B)
Attached To
Mode
D52311: fwget: pci: hex strings use 0-9 and a-f not a-z
Attached
Detach File
Event Timeline
Log In to Comment