summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranith Kumar <bobby.prani@gmail.com>2014-09-04 11:58:19 -0400
committerMaciej Wereski <m.wereski@partner.samsung.com>2014-12-12 17:09:23 +0100
commita320a96e9708ef9be960fb7085a25da7048eb6ae (patch)
tree72df35d3ee61a86d2ea61bf8a5282a071f1e29a0
parentba34746ebb32ec900920dbbbd92341963f7b5e81 (diff)
downloadlinux-3.10-a320a96e9708ef9be960fb7085a25da7048eb6ae.tar.gz
linux-3.10-a320a96e9708ef9be960fb7085a25da7048eb6ae.tar.bz2
linux-3.10-a320a96e9708ef9be960fb7085a25da7048eb6ae.zip
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>
-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();
}
}