All pastes #723133 Raw Edit

Miscellany

public text v1 · immutable
#723133 ·published 2007-10-02 15:26 UTC
rendered paste body
Index: firmware/logf.c
===================================================================
--- firmware/logf.c     (revision 13139)
+++ firmware/logf.c     (working copy)
@@ -31,6 +31,7 @@
 #include "lcd-remote.h"
 #include "logf.h"
 #include "serial.h"
+#include "debug.h"

 /* Only provide all this if asked to */
 #ifdef ROCKBOX_HAS_LOGF
@@ -108,6 +109,7 @@
     serial_tx("\r\n");
 #endif
     va_end(ap);
+    DEBUGF("%s\n", ptr);
     if(len < MAX_LOGF_ENTRY)
         /* pad with spaces up to the MAX_LOGF_ENTRY byte border */
         memset(ptr+len, ' ', MAX_LOGF_ENTRY-len);