[ofa-general] [TRIVIAL PATCH] ibutils: fix regexp for pkey matching
akepner at sgi.com
akepner at sgi.com
Tue Aug 25 14:12:50 PDT 2009
There's an error in a regular expression for matching pkeys
in ibdebug.tcl. The following fixes it.
Signed-off-by: Arthur Kepner <akepner at sgi.com>
---
diff -rup a/ibutils-1.2/ibdiag/src/ibdebug.tcl b/ibutils-1.2/ibdiag/src/ibdebug.tcl
--- a/ibutils-1.2/ibdiag/src/ibdebug.tcl 2009-08-25 12:38:45.646392453 -0700
+++ b/ibutils-1.2/ibdiag/src/ibdebug.tcl 2009-08-25 12:39:23.180706933 -0700
@@ -3048,7 +3048,7 @@ proc GetPortPkeys {drPath portNum numPKe
continue
}
foreach pkey $pkeyTable {
- if {[regexp {^0x[0-9a-fA-F]$} $pkey]} {
+ if {[regexp {^0x[0-9a-fA-F]+$} $pkey]} {
lappend pkeys $pkey
}
}
More information about the general
mailing list