From 5dc5fa5ee2ac4c0b3914ce926d1e126f052d1e99 Mon Sep 17 00:00:00 2001 From: Sa Sasu Date: Mon, 12 Aug 2024 14:09:39 +0800 Subject: [PATCH] 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 --- scripts/build/parse_syscalls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/parse_syscalls.py b/scripts/build/parse_syscalls.py index ebdb9bb73ab..b748bb1c210 100644 --- a/scripts/build/parse_syscalls.py +++ b/scripts/build/parse_syscalls.py @@ -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)