[PATCH wayland] tests: don't print '\0' character

Pekka Paalanen ppaalanen at gmail.com
Wed Nov 19 04:00:28 PST 2014


On Wed, 19 Nov 2014 11:58:26 +0100
Marek Chalupa <mchqwerty at gmail.com> wrote:

> print "" (which results in no output) instead of
> printing '\0' (which is not visible, but is there)
> 
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
> ---
>  tests/test-runner.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/test-runner.c b/tests/test-runner.c
> index a6c75a9..1373225 100644
> --- a/tests/test-runner.c
> +++ b/tests/test-runner.c
> @@ -132,8 +132,8 @@ test_set_timeout(unsigned int to)
>  	fprintf(stderr, "Timeout was %sset", re ? "re-" : "");
>  
>  	if (to != 0)
> -		fprintf(stderr, " to %d second%c from now.\n",
> -			to, to > 1 ? 's' : 0);
> +		fprintf(stderr, " to %d second%s from now.\n",
> +			to, to > 1 ? "s" : "");
>  	else
>  		fprintf(stderr, " off.\n");
>  }

Pushed.

Thanks,
pq


More information about the wayland-devel mailing list