The unified diff between revisions [056a532c..] and [dc88787e..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'log.c'

#
# old_revision [056a532c92301bcb224e1f786c5f6720e8acf3eb]
# new_revision [dc88787ecd1d574feba045763baed2a7651ff33d]
#
# patch "log.c"
#  from [dd8755b026f0047b95fa77ca6906ef13a3bc42a1]
#    to [3d31d11d1862fd3e0f41a90b8b6c96c71298be66]
#
============================================================
--- log.c	dd8755b026f0047b95fa77ca6906ef13a3bc42a1
+++ log.c	3d31d11d1862fd3e0f41a90b8b6c96c71298be66
@@ -5,6 +5,7 @@
 #include "uart.h"
 #include "timer.h"
 #include "log.h"
+#include "config.h"
 
 /* This is shared with sdcard.c */
 bool log_enabled;
@@ -36,8 +37,12 @@ void log_put_byte(char c)
 	/* If the buffer is full, we just discard data.
 	 * Better than overrunning.
 	 */
-	if (((log_bufferend + 1) % LOG_BUFFERSIZE) == log_bufferstart)
+	if (((log_bufferend + 1) % LOG_BUFFERSIZE) == log_bufferstart) {
+#if 0
+		putstr("^");
+#endif
 		return;
+	}
 	log_buffer[log_bufferend++] = c;
 	log_bufferend = log_bufferend % LOG_BUFFERSIZE;
 #if 0
@@ -68,6 +73,14 @@ void log_put_header(unsigned int timesta
 	log_put_uint(log_read_busytime());
 }
 
+void log_put_config(void)
+{
+	log_put_uint(LOG_MAGIC_CONFIG);
+	log_put_uint(CONFIG_VERSION);
+	log_put_uint(sizeof(struct config));
+	log_put_array((char *)&config, sizeof(struct config));
+}
+
 void log_put_array(char *data, int length)
 {
 	int i;