Otherwise it blows up if smpquery is not in the search path.

Signed-off-by: Jason Gunthorpe <[email protected]>
---
 scripts/ibdatacounts.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/ibdatacounts.in b/scripts/ibdatacounts.in
index a9e94c0..b64547b 100644
--- a/scripts/ibdatacounts.in
+++ b/scripts/ibdatacounts.in
@@ -106,7 +106,7 @@ else
        fi
 fi
 
-nodename=`smpquery $ca_info nodedesc $lid | sed -e "s/^Node 
Description:\.*\(.*\)/\1/"`
+nodename=`$IBPATH/smpquery $ca_info nodedesc $lid | sed -e "s/^Node 
Description:\.*\(.*\)/\1/"`
 
 text="`eval $IBPATH/perfquery $ca_info $lid $portnum`"
 rv=$?
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to