linux_syscall_numbers: add syscall number to output
PATCH 1/1 linux_syscall_numbers: add syscall number to output
Some tests don't pass __NR_* as argument directly, but use a variable. Because ltp_syscall is a macro that stringifies "NR" argument we get output such as: "syscall tests[i].syscall not supported on your arch".
Add syscall number to output as well.
Signed-off-by Jan Stancek <[email protected]>
--- testcases/kernel/include/regen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
testcases/kernel/include/regen.sh +2 -1
@@ -44,7 +44,8 @@ cat << EOF > "${output_pid}" } \\ if (__ret == -1 && errno == ENOSYS) { \\ tst_brkm(TCONF, CLEANUP, \\ - "syscall " #NR " not supported on your arch"); \\ + "syscall(%d) " #NR " not supported on your arch", \\ + NR); \\ errno = ENOSYS; \\ } \\ __ret; \\
Signature · 1 line
1.8.3.1
PATCH 1/1 linux_syscall_numbers: add syscall number to output
Hi!
Looks good.
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH 1/1 linux_syscall_numbers: add syscall number to output
----- Original Message -----
Quoted 8 lines
From: "Cyril Hrubis" <[email protected]>
To: "Jan Stancek" <[email protected]>
Cc: [email protected]
Sent: Monday, 7 December, 2015 10:57:06 AM
Subject: Re: [LTP] [PATCH]linux_syscall_numbers: add syscall number to outputHi!
Looks good.
Pushed.
Quoted 5 lines
--
Cyril Hrubis
[email protected]