summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2010-01-09 23:06:00 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-10 13:41:08 +0200
commit6d9026c4b4620b4f65d172522b7b3a7aed4a94df (patch)
tree0e007397939cf73d63334b373c10a8f74eb21dcd /client/x11
parent0bd3b58bc916525f957994acda875f96c7a036dc (diff)
downloadspice-6d9026c4b4620b4f65d172522b7b3a7aed4a94df.tar.gz
spice-6d9026c4b4620b4f65d172522b7b3a7aed4a94df.tar.xz
spice-6d9026c4b4620b4f65d172522b7b3a7aed4a94df.zip
client: add Platform::term_printf
Platform::term_printf is a variant of printf that on windows dynamically opens console in order to have visible output during command line processing.
Diffstat (limited to 'client/x11')
-rw-r--r--client/x11/platform.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 1bedb225..bceae05a 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -252,6 +252,14 @@ void Platform::yield()
pthread_yield();
}
+void Platform::term_printf(const char* format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ vprintf(format, ap);
+ va_end(ap);
+}
+
void Platform::set_thread_priority(void* thread, Platform::ThreadPriority in_priority)
{
ASSERT(thread == NULL);