diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-11 04:30:54 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2010-12-11 04:30:54 +0000 |
| commit | 9788043b11710f755b7b05bd2bd7b27f38aabbdf (patch) | |
| tree | ce85a555bc3c5064e1834693d5addefa91d50141 /apps/debug_menu.c | |
| parent | b3f38bcf6324f5a3545c7aff6689164318cd8a20 (diff) | |
| download | rockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.zip rockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.tar.gz rockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.tar.bz2 rockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.tar.xz | |
Commit FS#11776 by Jonas Haggqvist. Enables option to log building the database in order to trouble shoot crashes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28789 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 9fcb071..968355f 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -2086,6 +2086,16 @@ static bool dbg_screendump(void) } #endif /* HAVE_LCD_BITMAP */ +extern bool write_metadata_log; + +static bool dbg_metadatalog(void) +{ + write_metadata_log = !write_metadata_log; + splashf(HZ, "Metadata log %s", + write_metadata_log?"enabled":"disabled"); + return false; +} + #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) static bool dbg_set_memory_guard(void) { @@ -2360,6 +2370,7 @@ static const struct the_menu_item menuitems[] = { { "Dump ATA identify info", dbg_identify_info}, #endif #endif + { "Metadata log", dbg_metadatalog }, #ifdef HAVE_DIRCACHE { "View dircache info", dbg_dircache_info }, #endif |