shithub: libsamplerate

Download patch

ref: da449742ce7f3bf50f18479202a40d9e19e52e47
parent: 8478b0052b56358930eb37f2221708d9f460402b
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Tue Feb 22 15:33:29 EST 2011

tests/*.c : Update to use get_cpu_name().

--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
     Rename functio print_cpu_name() to get_cpu_name(). Add code for Mac OSX and
     FreeBSD.
 
+    * tests/multichan_throughput_test.c tests/throughput_test.c
+    Update to use get_cpu_name().
+
 2010-11-04  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
     * src/*.[ch]
--- a/tests/multichan_throughput_test.c
+++ b/tests/multichan_throughput_test.c
@@ -103,8 +103,7 @@
 {	const int max_channels = 10 ;
 	int k ;
 
-	printf ("\n    CPU : ") ;
-	print_cpu_name () ;
+	printf ("\n    CPU name : %s\n", get_cpu_name ()) ;
 
 	puts (
 		"\n"
@@ -131,8 +130,7 @@
 multi_run (int run_count)
 {	int k, ch ;
 
-	printf ("\n    CPU name : ") ;
-	print_cpu_name () ;
+	printf ("\n    CPU name : %s\n", get_cpu_name ()) ;
 
 	puts (
 		"\n"
--- a/tests/throughput_test.c
+++ b/tests/throughput_test.c
@@ -103,8 +103,7 @@
 single_run (void)
 {
 
-	printf ("\n    CPU : ") ;
-	print_cpu_name () ;
+	printf ("\n    CPU name : %s\n", get_cpu_name ()) ;
 
 	puts (
 		"\n"
@@ -147,8 +146,7 @@
 		sleep (10) ;
 		} ;
 
-	printf ("\n    CPU name : ") ;
-	print_cpu_name () ;
+	printf ("\n    CPU name : %s\n", get_cpu_name ()) ;
 
 	puts (
 		"\n"