]> granicus.if.org Git - json-c/commitdiff
Write additional test info to stderr instead of stdout so as not to mar the expected...
authorAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Wed, 19 Dec 2012 09:52:50 +0000 (10:52 +0100)
committerAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Wed, 19 Dec 2012 09:52:50 +0000 (10:52 +0100)
tests/test_null.c

index 1f07910ee1756907b04292e909c9b800cc36772c..d017c7a13a3b9a4a04053d50fe56f7635430f595 100644 (file)
@@ -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