memfd_test: Add missing argument to printf()
PATCH 1/1 memfd_test: Add missing argument to printf()
Add a missing path argument buf to printf()
Signed-off-by Pranith Kumar <[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
Hi
Quoted 3 lines · Pranith Kumar
Add a missing path argument buf to
printf()Signed-off-by Pranith Kumar <[email protected]>
Looks good:
Reviewed-by David Herrmann <[email protected]>
Thanks
David
Quoted 20 lines
--- tools/testing/selftests/memfd/memfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/memfd/memfd_test.c +1
-2@@ -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 (); } } --2.1.0