Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Whisonant <[email protected]>
  • Loading branch information
Tim Whisonant committed Oct 10, 2023
1 parent dd441b8 commit 8d62097
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions binaries/opae.io/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,9 @@ int main(int argc, char *argv[])
std::cerr << pyerr.what() << std::endl;
return rc;
}
} else if (pyerr.matches(PyExc_TypeError)) {
std::cerr << "No suitable accelerator device found." << std::endl;
return 2;
} else {
std::cerr << pyerr.what() << std::endl;
return 3;
return 2;
}
}
if (!cli->is_interactive()) {
Expand Down
2 changes: 1 addition & 1 deletion binaries/opae.io/pymain.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class script_action(base_action):
with open(args.script_file) as f:
sys.argv = [args.script_file] + args.script_args
exec(f.read(), globals=dict(globals()), locals={})
exec(f.read(), dict(globals()), {})
raise SystemExit(0)
Expand Down
4 changes: 2 additions & 2 deletions binaries/opae.io/scripts/walk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright(c) 2020, Intel Corporation
## Copyright(c) 2020-2023, Intel Corporation
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -26,5 +26,5 @@

from opae.io.utils import dfh_walk

for offset, dfh in dfh_walk():
for offset, dfh in dfh_walk(region=the_region):
print('offset: 0x{:0x}\n{}'.format(offset, dfh))

0 comments on commit 8d62097

Please sign in to comment.