diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:19:12 +0000 |
commit | 22b7701fe75cce9afdbc27046821dc089f9e7dac (patch) | |
tree | ca5b4f0428fad0fc9c775dfb0ac879ddee863846 /firmware/debug.c | |
parent | 376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff) | |
download | rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip |
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/debug.c')
-rw-r--r-- | firmware/debug.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index 0989e80b17..e3be2de168 100644 --- a/firmware/debug.c +++ b/firmware/debug.c | |||
@@ -216,28 +216,4 @@ void debugf(const char *fmt, ...) | |||
216 | #endif | 216 | #endif |
217 | } | 217 | } |
218 | 218 | ||
219 | |||
220 | #else /* SIMULATOR code coming up */ | ||
221 | |||
222 | void debug_init(void) | ||
223 | { | ||
224 | } | ||
225 | extern void *stderr; | ||
226 | |||
227 | void debugf(const char *fmt, ...) | ||
228 | { | ||
229 | va_list ap; | ||
230 | va_start( ap, fmt ); | ||
231 | vfprintf( stderr, fmt, ap ); | ||
232 | va_end( ap ); | ||
233 | } | ||
234 | |||
235 | void ldebugf(const char* file, int line, const char *fmt, ...) | ||
236 | { | ||
237 | va_list ap; | ||
238 | va_start( ap, fmt ); | ||
239 | fprintf( stderr, "%s:%d ", file, line ); | ||
240 | vfprintf( stderr, fmt, ap ); | ||
241 | va_end( ap ); | ||
242 | } | ||
243 | #endif | 219 | #endif |