summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-09-04 11:58:19 -0400
committerShuah Khan <shuahkh@osg.samsung.com>2014-09-04 11:01:26 -0600
commit2ed36928373cc3dfb20a4d17042e9a6e05538e41 (patch)
tree2132f7111b86366343773b194968b35d68c1c2bc /tools/testing
parent57e67900d4c7949ad646a5f43a8ca5180170d2a0 (diff)
memfd_test: Add missing argument to printf()
Add a missing path argument buf to printf() Signed-off-by: Pranith Kumar <bobby.prani@gmail.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/memfd/memfd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/memfd/memfd_test.c b/tools/testing/selftests/memfd/memfd_test.c
index cb5001bfa5e..0b9eafb7ab7 100644
--- a/tools/testing/selftests/memfd/memfd_test.c
+++ b/tools/testing/selftests/memfd/memfd_test.c
@@ -203,7 +203,7 @@ static void mfd_fail_open(int fd, int flags, mode_t mode)
sprintf(buf, "/proc/self/fd/%d", fd);
r = open(buf, flags, mode);
if (r >= 0) {
- printf("open(%s) didn't fail as expected\n");
+ printf("open(%s) didn't fail as expected\n", buf);
abort();
}
}