summaryrefslogtreecommitdiff
path: root/firmware/SOURCES
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2012-07-03 21:45:29 -0400
committerMichael Giacomelli <mgiacomelli@gmail.com>2012-08-07 00:53:46 +0200
commitd46b090771291c10127d0fb421ee3c9f1e8f69b1 (patch)
treeae5a6e01f6d2025294f8905a9a791c4ede3d4869 /firmware/SOURCES
parent7c31ff2fb0cc3ba40f82c3b02daf1e7ca41e1cf6 (diff)
downloadrockbox-d46b090771291c10127d0fb421ee3c9f1e8f69b1.tar.gz
rockbox-d46b090771291c10127d0fb421ee3c9f1e8f69b1.zip
Introduce logging to disk feature into rockbox.
Logs information, errors, etc to disk using the register_storage_idle_func mechanism to write to the disk when available. Currently, this is disabled in normal builds, but can be enabled by adding ROCKBOX_HAS_LOGDISKF to the config file. By default, it uses a 2KB buffer and drops text if the buffer overflows. The system includes a simple warning level mechanism that can be used to by default exclude non-serious errors from logging on release builds. Change-Id: I0a3d186a93625c7c93dae37b993a0d37e5a3a925 Reviewed-on: http://gerrit.rockbox.org/288 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info> Tested-by: Michael Giacomelli <mgiacomelli@gmail.com> Reviewed-by: Michael Giacomelli <mgiacomelli@gmail.com>
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r--firmware/SOURCES2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 80267b4320..98b09738af 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -26,7 +26,7 @@ target/hosted/debug-hosted.c
26#endif 26#endif
27system.c 27system.c
28usb.c 28usb.c
29#ifdef ROCKBOX_HAS_LOGF 29#if defined(ROCKBOX_HAS_LOGF) || defined(ROCKBOX_HAS_LOGDISKF)
30logf.c 30logf.c
31#endif /* ROCKBOX_HAS_LOGF */ 31#endif /* ROCKBOX_HAS_LOGF */
32kernel.c 32kernel.c