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-29 09:31:36 +0100
commit46e692fb97ecd7e229432e1f3904948507e0c02f (patch)
tree2a05de22d80c9b9b38dabefbd45386d63ded84d8
parent326cd996584d775c0263fb519fd722715806d337 (diff)
downloadlinux-3.10-46e692fb97ecd7e229432e1f3904948507e0c02f.tar.gz
linux-3.10-46e692fb97ecd7e229432e1f3904948507e0c02f.tar.bz2
linux-3.10-46e692fb97ecd7e229432e1f3904948507e0c02f.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> Change-Id: Ie4d1f23fc07a397971ee94c0fdd164fb7145771d Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2ed36928373cc3dfb20a4d17042e9a6e05538e41 Backported-by: Maciej Wereski <m.wereski@partner.samsung.com> Signed-off-by: Maciej Wereski <m.wereski@partner.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();
}
}