memfd_test: Add missing argument to printf()
PATCH RESEND 1/1 memfd_test: Add missing argument to printf()
Add a missing path argument buf to printf()
Signed-off-by Pranith Kumar <[email protected]>
Reviewed-by David Herrmann <[email protected]>
--- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/memfd/memfd_test.c +1 -1
@@ -205,7 +205,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 (); } }
Signature · 1 line
2.1.0
Quoted 14 lines · Pranith Kumar
Add a missing path argument buf to
printf()Signed-off-by Pranith Kumar <[email protected]>Reviewed-by David Herrmann <[email protected]>--- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/memfd/memfd_test.c +0
-0
tools/testing/selftests/memfd/memfd_test.c static void mfd_fail_open(int fd, int flags, mode_t mode) · line 211
Quoted 8 lines
tools/testing/selftests/memfd/memfd_test.c +1
-1@@ -205,7 +205,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 (); } }
Thanks. I queued it for 3.17 fixes.
-- Shuah
Signature · 4 lines
Shuah Khan Sr. Linux Kernel Developer Samsung Research America (Silicon Valley) [email protected] | (970) 217-8978