From: Jeff Shaw Date: Tue, 9 Feb 2016 00:33:46 +0000 (-0800) Subject: tools: fix unbinding failure handling X-Git-Tag: spdx-start~7651 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da82ee17e6ea99bf2931383ac33b0caccaaaefce;p=dpdk.git tools: fix unbinding failure handling We should call sys.exit(), not divide sys by exit(). Signed-off-by: Jeff Shaw Acked-by: Bruce Richardson --- diff --git a/tools/dpdk_nic_bind.py b/tools/dpdk_nic_bind.py index f02454e56a..a1923c5922 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()