mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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>
This commit is contained in:
parent
7c31ff2fb0
commit
d46b090771
4 changed files with 190 additions and 27 deletions
|
@ -26,7 +26,7 @@ target/hosted/debug-hosted.c
|
|||
#endif
|
||||
system.c
|
||||
usb.c
|
||||
#ifdef ROCKBOX_HAS_LOGF
|
||||
#if defined(ROCKBOX_HAS_LOGF) || defined(ROCKBOX_HAS_LOGDISKF)
|
||||
logf.c
|
||||
#endif /* ROCKBOX_HAS_LOGF */
|
||||
kernel.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue