Skip to content

Commit 5dc5fa5

Browse files
Sasasummahadevan108
authored andcommitted
scripts: print the file name when decode syscall
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 <[email protected]>
1 parent fa29a07 commit 5dc5fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/parse_syscalls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def analyze_headers(include_dir, scan_dir, file_list):
119119
try:
120120
contents = fp.read()
121121
except Exception:
122-
sys.stderr.write("Error decoding %s\n" % path)
122+
sys.stderr.write("Error decoding %s (included in %s)\n" % (one_file, path))
123123
raise
124124

125125
fn = os.path.basename(one_file)

0 commit comments

Comments
 (0)