glcpp: Print errors on stdout instead of stderr (non-standalone version).
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jun 2010 20:19:27 +0000 (13:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Jun 2010 18:31:55 +0000 (11:31 -0700)
Otherwise, piglit marks tests as "warn" when the shader was (correctly)
failing.

glcpp/pp.c

index 7211bdb8d9014e4c97c2bbde52f65dce056a6ce6..04ea0a479725969a1ac748e5b59b495960a0fc28 100644 (file)
@@ -33,7 +33,7 @@ preprocess(void *talloc_ctx, const char **shader, size_t *shader_len)
        glcpp_parser_parse (parser);
 
        errors = parser->errors[0] != '\0';
-       fprintf(stderr, "%s", parser->errors);
+       printf("%s", parser->errors);
 
        talloc_steal(talloc_ctx, parser->output);
        *shader = parser->output;