nonzero errno if bdf is not compatible.
* nonzero errno if bdf is not compatible.
Added space between "a" and "compatible".
Removed "invalid" because that check is handled earlier -- by a call to normalize_bdf(...) on line 262.
Returning a non-zero value due to an error.
@@ -279,9 +279,9 @@ def main():
fcntl.flock(flock.fileno(), fcntl.LOCK_UN)
raise SystemExit(exit_code)
- logging.error(('PCIe address (%s) is invalid or does not identify a'
- 'compatible device'), args.bdf)
-
+ logging.error('PCIe address (%s) does not identify a compatible device',
+ args.bdf)
+ raise SystemExit(os.EX_NOTFOUND)
if __name__ == "__main__":
main()
