This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] libio: Fix fmemopen 'w' mode with provided buffer
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org
- Date: Thu, 16 Jul 2015 13:32:11 -0400
- Subject: Re: [PATCH] libio: Fix fmemopen 'w' mode with provided buffer
- Authentication-results: sourceware.org; auth=none
- References: <55A799A3 dot 6040202 at linaro dot org> <mo8691$1se$1 at ger dot gmane dot org> <55A7AB9E dot 2050308 at linaro dot org>
On 07/16/2015 09:03 AM, Adhemerval Zanella wrote:
>
>
> On 16-07-2015 08:58, Stefan Liebler wrote:
>> As already mentioned in https://www.sourceware.org/ml/libc-alpha/2015-07/msg00455.html, the testcase is now passing on s390-32.
>>
>> Can you change this printf in case of a failure, too:
>
> Ok, change below:
>
> * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
> buffer.
> * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
> fail output information.
> @@ -69,7 +69,7 @@ do_test_with_buffer (void)
> if (o != nstr)
> {
> printf ("FAIL: third ftello returned %jd, expected %zu\n",
> - (intmax_t)o, nbuf);
> + (intmax_t)o, nstr);
> result = 1;
> }
OK for 2.22.
c.