summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorYaniv Kamay <ykamay@redhat.com>2010-01-11 19:57:29 +0200
committerYaniv Kamay <ykamay@redhat.com>2010-01-11 19:57:29 +0200
commit8ceb531958cb649b7cc7f16f2f504125cb430fe4 (patch)
tree847f4325a37ce7bfccf6a469659b11f775cc3e62 /client/x11
parent3c1ff6448d847e6e96425fa166446b99bac5e592 (diff)
downloadspice-8ceb531958cb649b7cc7f16f2f504125cb430fe4.tar.gz
spice-8ceb531958cb649b7cc7f16f2f504125cb430fe4.tar.xz
spice-8ceb531958cb649b7cc7f16f2f504125cb430fe4.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 02250f11..6f550135 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -268,6 +268,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);