diff options
author | Stefan Meyer <calpefrosch@rockbox.org> | 2002-05-06 11:08:10 +0000 |
---|---|---|
committer | Stefan Meyer <calpefrosch@rockbox.org> | 2002-05-06 11:08:10 +0000 |
commit | ee77969109b2b7493df2e393f69816b1c61d32ef (patch) | |
tree | 61292cc87b5f712da015d7488882cf9aef934589 /uisimulator | |
parent | 8dd2faebfcbe60764c02998f3dfd958c76ea8618 (diff) | |
download | rockbox-ee77969109b2b7493df2e393f69816b1c61d32ef.tar.gz rockbox-ee77969109b2b7493df2e393f69816b1c61d32ef.zip |
- 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')
-rw-r--r-- | uisimulator/win32/debug-win32.c | 15 |
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 @@ | |||
22 | char debugmembuf[100]; | 22 | char debugmembuf[100]; |
23 | char debugbuf[200]; | 23 | char debugbuf[200]; |
24 | 24 | ||
25 | |||
25 | void debug( const char *message ) | 26 | void debug( const char *message ) |
26 | { | 27 | { |
27 | OutputDebugString (message); | 28 | OutputDebugString (message); |
@@ -30,9 +31,19 @@ void debug( const char *message ) | |||
30 | void debugf(char *fmt, ...) | 31 | void debugf(char *fmt, ...) |
31 | { | 32 | { |
32 | va_list ap; | 33 | va_list ap; |
33 | 34 | ||
35 | va_start( ap, fmt ); | ||
36 | wvsprintf( debugmembuf, fmt, ap ); | ||
37 | va_end( ap ); | ||
38 | debug ( debugmembuf ); | ||
39 | } | ||
40 | |||
41 | void Logf(char *fmt, ...) | ||
42 | { | ||
43 | va_list ap; | ||
44 | |||
34 | va_start( ap, fmt ); | 45 | va_start( ap, fmt ); |
35 | wsprintf( debugmembuf, fmt, ap ); | 46 | wvsprintf( debugmembuf, fmt, ap ); |
36 | va_end( ap ); | 47 | va_end( ap ); |
37 | debug ( debugmembuf ); | 48 | debug ( debugmembuf ); |
38 | } \ No newline at end of file | 49 | } \ No newline at end of file |