summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeff Shaw <jeffrey.b.shaw@intel.com>2016-02-08 16:33:46 -0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-02-09 12:54:09 +0100
commitda82ee17e6ea99bf2931383ac33b0caccaaaefce (patch)
treedc030e4ce04826d330413775e62dcf6a1c72101a /tools
parente45ae7065e92ade35d6a3883a986a4210c78cc24 (diff)
downloaddpdk-da82ee17e6ea99bf2931383ac33b0caccaaaefce.zip
dpdk-da82ee17e6ea99bf2931383ac33b0caccaaaefce.tar.gz
dpdk-da82ee17e6ea99bf2931383ac33b0caccaaaefce.tar.xz
tools: fix unbinding failure handling
We should call sys.exit(), not divide sys by exit(). Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dpdk_nic_bind.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dpdk_nic_bind.py b/tools/dpdk_nic_bind.py
index f02454e..a1923c5 100755
--- a/tools/dpdk_nic_bind.py
+++ b/tools/dpdk_nic_bind.py
@@ -317,7 +317,7 @@ def unbind_one(dev_id, force):
f = open(filename, "a")
except:
print "Error: unbind failed for %s - Cannot open %s" % (dev_id, filename)
- sys/exit(1)
+ sys.exit(1)
f.write(dev_id)
f.close()