From 010242593e63a6b6d763de1b446097cccf876ad8 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 11 Jul 2012 16:23:35 +0300 Subject: [PATCH] test/dump: output commentary to stderr Signed-off-by: Ran Benita --- test/dump.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/dump.c b/test/dump.c index abb9f0a..eaa7adb 100644 --- a/test/dump.c +++ b/test/dump.c @@ -71,10 +71,11 @@ int main(int argc, char *argv[]) assert(as_string); if (strcmp(as_string, expected) != 0) { - printf("dumped map differs from expected!\n\n"); - printf("length: got %zu, expected %zu\n", - strlen(as_string), strlen(expected)); - printf("result:\n%s\n", as_string); + fprintf(stderr, "dumped map differs from expected!\n\n"); + fprintf(stderr, "length: got %zu, expected %zu\n", + strlen(as_string), strlen(expected)); + fprintf(stderr, "result:\n"); + printf("%s\n", as_string); assert(0); }