diff --git a/rocDecode-setup.py b/rocDecode-setup.py index fb3ee1d4ab..381b0a6064 100644 --- a/rocDecode-setup.py +++ b/rocDecode-setup.py @@ -34,11 +34,11 @@ __email__ = "mivisionx.support@amd.com" __status__ = "Shipping" # error check calls -def ERROR_CHECK(call): - status = call - if(status != 0): - print('ERROR_CHECK failed with status:'+str(status)) +def ERROR_CHECK(waitval): + if(waitval != 0): # return code and signal flags + print('ERROR_CHECK failed with status:'+str(waitval)) traceback.print_stack() + status = ((waitval >> 8) | waitval) & 255 # combine exit code and wait flags into single non-zero byte exit(status) # Arguments