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

Marek Chalupa mchqwerty at gmail.com
Wed Nov 19 02:58:26 PST 2014


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");
 }
-- 
2.1.0



More information about the wayland-devel mailing list