From: Alexander Klauer Date: Wed, 19 Dec 2012 09:52:50 +0000 (+0100) Subject: Write additional test info to stderr instead of stdout so as not to mar the expected... X-Git-Tag: json-c-0.11-20130402~28^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57f36ed32a1e679d2ac4c90d12b88e7e2c183b6b;p=thirdparty%2Fjson-c.git Write additional test info to stderr instead of stdout so as not to mar the expected output --- diff --git a/tests/test_null.c b/tests/test_null.c index 1f07910e..d017c7a1 100644 --- a/tests/test_null.c +++ b/tests/test_null.c @@ -41,12 +41,12 @@ int main() int parsed_len = json_object_get_string_len(parsed_str); const char *parsed_cstr = json_object_get_string(parsed_str); int ii; - printf("Re-parsed object string len=%d, chars=[", parsed_len); + fprintf( stderr, "Re-parsed object string len=%d, chars=[", parsed_len); for (ii = 0; ii < parsed_len ; ii++) { - printf("%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]); + fprintf( stderr, "%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]); } - printf("]\n"); + fprintf( stderr, "]\n"); json_object_put(parsed_str); } else