git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e45ae70
)
tools: fix unbinding failure handling
author
Jeff Shaw
<jeffrey.b.shaw@intel.com>
Tue, 9 Feb 2016 00:33:46 +0000
(16:33 -0800)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 9 Feb 2016 11:54:09 +0000
(12:54 +0100)
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>
tools/dpdk_nic_bind.py
patch
|
blob
|
history
diff --git
a/tools/dpdk_nic_bind.py
b/tools/dpdk_nic_bind.py
index
f02454e
..
a1923c5
100755
(executable)
--- 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()