aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-06 01:16:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-06 02:01:08 +0200
commit9101ef6757e964c64dd1b3c50baccbe6f5e52550 (patch)
tree7073605486607b6df4a3bbe65f84cae75ce9339c /libavutil/cpu.c
parenta8689ba87207406d2120720d1322e886e7190a2e (diff)
downloadffmpeg-9101ef6757e964c64dd1b3c50baccbe6f5e52550.tar.gz
avutil/cpu: output cpu data to stdout
Errors go to stderr, but the cpu stats are non error output for cputest This fixes echoing the cpu test results Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 03f89cb674..47d6fcc07a 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -331,12 +331,12 @@ static void print_cpu_flags(int cpu_flags, const char *type)
{
int i;
- fprintf(stderr, "cpu_flags(%s) = 0x%08X\n", type, cpu_flags);
- fprintf(stderr, "cpu_flags_str(%s) =", type);
+ printf("cpu_flags(%s) = 0x%08X\n", type, cpu_flags);
+ printf("cpu_flags_str(%s) =", type);
for (i = 0; cpu_flag_tab[i].flag; i++)
if (cpu_flags & cpu_flag_tab[i].flag)
- fprintf(stderr, " %s", cpu_flag_tab[i].name);
- fprintf(stderr, "\n");
+ printf(" %s", cpu_flag_tab[i].name);
+ printf("\n");
}
@@ -382,7 +382,7 @@ int main(int argc, char **argv)
print_cpu_flags(cpu_flags_raw, "raw");
print_cpu_flags(cpu_flags_eff, "effective");
- fprintf(stderr, "threads = %s (cpu_count = %d)\n", threads, cpu_count);
+ printf("threads = %s (cpu_count = %d)\n", threads, cpu_count);
return 0;
}