about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test.cc b/src/test.cc
index 019c7bf7e580..a3706472ee6d 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -21,7 +21,8 @@ struct MySink : DumpSink
 {
     virtual void operator () (const unsigned char * data, unsigned int len)
     {
-        cout.write((char *) data, len);
+        /* Don't use cout, it's slow as hell! */
+        write(STDOUT_FILENO, (char *) data, len);
     }
 };