aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorChun-Min Chang <[email protected]>2017-03-27 16:36:59 +0800
committerPaul Adenot <[email protected]>2017-03-27 02:45:33 -0700
commit91caeafda775f54b92c27536db74dcd656fbf627 (patch)
tree721195e609df0f029aa894bb385745c2b7b96723 /test
parent8123c4239056fa2572247b2e804e6842068238cc (diff)
downloadcubeb-91caeafda775f54b92c27536db74dcd656fbf627.tar.gz
cubeb-91caeafda775f54b92c27536db74dcd656fbf627.zip
Replace printf by fprintf with stderr
Diffstat (limited to 'test')
-rw-r--r--test/test_overload_callback.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp
index b758dd5..fa23222 100644
--- a/test/test_overload_callback.cpp
+++ b/test/test_overload_callback.cpp
@@ -28,9 +28,9 @@ std::atomic<bool> load_callback{ false };
long data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes)
{
if (load_callback) {
- printf("Sleeping...\n");
+ fprintf(stderr, "Sleeping...\n");
delay(100000);
- printf("Sleeping done\n");
+ fprintf(stderr, "Sleeping done\n");
}
return nframes;
}
@@ -41,13 +41,13 @@ void state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state)
switch (state) {
case CUBEB_STATE_STARTED:
- printf("stream started\n"); break;
+ fprintf(stderr, "stream started\n"); break;
case CUBEB_STATE_STOPPED:
- printf("stream stopped\n"); break;
+ fprintf(stderr, "stream stopped\n"); break;
case CUBEB_STATE_DRAINED:
FAIL() << "this test is not supposed to drain"; break;
case CUBEB_STATE_ERROR:
- printf("stream error\n"); break;
+ fprintf(stderr, "stream error\n"); break;
default:
FAIL() << "this test is not supposed to have a weird state"; break;
}