mfd_fail_open() doesn't pass in the buffer to printf resulting
in the following warning:
memfd_test.c: In function ‘mfd_fail_open’:
memfd_test.c:208:3: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
printf("open(%s) didn't fail as expected\n");
^
This change fixes the problem.
Signed-off-by: Shuah Khan <redacted>
---
tools/testing/selftests/memfd/memfd_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Thu, Sep 4, 2014 at 11:07 AM, Shuah Khan [off-list ref] wrote:
mfd_fail_open() doesn't pass in the buffer to printf resulting
in the following warning:
memfd_test.c: In function ‘mfd_fail_open’:
memfd_test.c:208:3: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
printf("open(%s) didn't fail as expected\n");
^
This change fixes the problem.
Signed-off-by: Shuah Khan <redacted>
On Thu, Sep 4, 2014 at 11:07 AM, Shuah Khan [off-list ref] wrote:
quoted
mfd_fail_open() doesn't pass in the buffer to printf resulting
in the following warning:
memfd_test.c: In function ‘mfd_fail_open’:
memfd_test.c:208:3: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat=]
printf("open(%s) didn't fail as expected\n");
^
This change fixes the problem.
Signed-off-by: Shuah Khan <redacted>
Hi Pranith,
Great. Could you please resend it to me cc'ing linux-api as well.
thanks,
-- Shuah
--
Shuah Khan
Sr. Linux Kernel Developer
Samsung Research America (Silicon Valley)
shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978