Signed-off-by: Sameeksha Sankpal
---
tools/testing/selftests/seccomp/seccomp_bpf.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c
b/tools/testing/selftests/seccomp/seccomp_bpf.c
index 14ba51b52095..d6a85d7b26da 100644
Use TH_LOG to report failure when reading /proc//stat in
get_proc_stat(), following kernel test framework conventions.
Previously, printf() was used which is discouraged.
Suggested-by: Kees Cook
Signed-off-by: Sameeksha Sankpal
---
v1 -> v2:
- Used TH_LOG instead of printf for error logg
Rebase the error logging enhancement for get_proc_stat() against the upstream
seccomp tree with proper indentation formatting.
Suggested-by: Kees Cook
Signed-off-by: Sameeksha Sankpal
---
v1 -> v2:
- Used TH_LOG instead of printf for error logging
- Moved variable declaration to the top
3 matches
Mail list logo