Skip to contentSkip to conversation

memfd_test: Add missing argument to printf()

PATCH RESEND In review Pranith Kumar 2 participants 2 messages Sep 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 memfd_test: Add missing argument to printf()

Add a missing path argument buf to printf()

---
 tools/testing/selftests/memfd/memfd_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/memfd/memfd_test.c +1 -1
index 3634c90..c343df8 100644
@@ -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
#1 lore raw
Quoted 14 lines · Pranith Kumar

Add a missing path argument buf to printf()

---
 tools/testing/selftests/memfd/memfd_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/memfd/memfd_test.c +0 -0
index 3634c90..c343df8 100644

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