Skip to content

Commit

Permalink
scripts: print the file name when decode syscall
Browse files Browse the repository at this point in the history
the script shows an incorrect file name, I check the wrong file first, then
I find the script did not print the current reading file name.

Fix this to prevent others from wasting their time on this.

The new error message:

```
[1/179] Generating syscalls.json, struct_tags.json
Error decoding zmk/.../altera_msgdma.c (included in zephyr/.../ethernet.c)
```

Signed-off-by: Sa Sasu <i@sasa.su>
  • Loading branch information
Sasasu authored and mmahadevan108 committed Oct 30, 2024
1 parent fa29a07 commit 5dc5fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/parse_syscalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def analyze_headers(include_dir, scan_dir, file_list):
try:
contents = fp.read()
except Exception:
sys.stderr.write("Error decoding %s\n" % path)
sys.stderr.write("Error decoding %s (included in %s)\n" % (one_file, path))
raise

fn = os.path.basename(one_file)
Expand Down

0 comments on commit 5dc5fa5

Please sign in to comment.