summaryrefslogtreecommitdiff
path: root/firmware/debug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
commit22b7701fe75cce9afdbc27046821dc089f9e7dac (patch)
treeca5b4f0428fad0fc9c775dfb0ac879ddee863846 /firmware/debug.c
parent376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff)
downloadrockbox-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.c24
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
222void debug_init(void)
223{
224}
225extern void *stderr;
226
227void 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
235void 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