summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
authorStefan Meyer <calpefrosch@rockbox.org>2002-05-06 11:08:10 +0000
committerStefan Meyer <calpefrosch@rockbox.org>2002-05-06 11:08:10 +0000
commitee77969109b2b7493df2e393f69816b1c61d32ef (patch)
tree61292cc87b5f712da015d7488882cf9aef934589 /uisimulator/win32
parent8dd2faebfcbe60764c02998f3dfd958c76ea8618 (diff)
- added Logf ( maybe it should be defined somewhere else)
- changed to wvsprintf because of the parameter list git-svn-id: svn://svn.rockbox.org/rockbox/trunk@470 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/debug-win32.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/uisimulator/win32/debug-win32.c b/uisimulator/win32/debug-win32.c
index 6a65f4fcd3..31d934d418 100644
--- a/uisimulator/win32/debug-win32.c
+++ b/uisimulator/win32/debug-win32.c
@@ -22,6 +22,7 @@
char debugmembuf[100];
char debugbuf[200];
+
void debug( const char *message )
{
OutputDebugString (message);
@@ -30,9 +31,19 @@ void debug( const char *message )
void debugf(char *fmt, ...)
{
va_list ap;
-
+
+ va_start( ap, fmt );
+ wvsprintf( debugmembuf, fmt, ap );
+ va_end( ap );
+ debug ( debugmembuf );
+}
+
+void Logf(char *fmt, ...)
+{
+ va_list ap;
+
va_start( ap, fmt );
- wsprintf( debugmembuf, fmt, ap );
+ wvsprintf( debugmembuf, fmt, ap );
va_end( ap );
debug ( debugmembuf );
} \ No newline at end of file