memfd_test: Add missing argument to printf()
authorPranith Kumar <bobby.prani@gmail.com>
Thu, 4 Sep 2014 15:58:19 +0000 (11:58 -0400)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 4 Sep 2014 17:01:26 +0000 (11:01 -0600)
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>
tools/testing/selftests/memfd/memfd_test.c

index cb5001bfa5e30216f9acf61bb569d81ea19a6dcd..0b9eafb7ab7bc1cc0282a4eec26bad50786a23fe 100644 (file)
@@ -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();
        }
 }