diff options
author | Pranith Kumar <bobby.prani@gmail.com> | 2014-09-04 11:58:19 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2014-09-04 13:01:26 -0400 |
commit | 2ed36928373cc3dfb20a4d17042e9a6e05538e41 (patch) | |
tree | 2132f7111b86366343773b194968b35d68c1c2bc | |
parent | 57e67900d4c7949ad646a5f43a8ca5180170d2a0 (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>
-rw-r--r-- | tools/testing/selftests/memfd/memfd_test.c | 2 |
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 cb5001bfa5e3..0b9eafb7ab7b 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) | |||
203 | sprintf(buf, "/proc/self/fd/%d", fd); | 203 | sprintf(buf, "/proc/self/fd/%d", fd); |
204 | r = open(buf, flags, mode); | 204 | r = open(buf, flags, mode); |
205 | if (r >= 0) { | 205 | if (r >= 0) { |
206 | printf("open(%s) didn't fail as expected\n"); | 206 | printf("open(%s) didn't fail as expected\n", buf); |
207 | abort(); | 207 | abort(); |
208 | } | 208 | } |
209 | } | 209 | } |