summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-12-11 04:30:54 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-12-11 04:30:54 +0000
commit9788043b11710f755b7b05bd2bd7b27f38aabbdf (patch)
treece85a555bc3c5064e1834693d5addefa91d50141 /apps/debug_menu.c
parentb3f38bcf6324f5a3545c7aff6689164318cd8a20 (diff)
downloadrockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.tar.gz
rockbox-9788043b11710f755b7b05bd2bd7b27f38aabbdf.zip
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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 9fcb0719be..968355f518 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2086,6 +2086,16 @@ static bool dbg_screendump(void)
2086} 2086}
2087#endif /* HAVE_LCD_BITMAP */ 2087#endif /* HAVE_LCD_BITMAP */
2088 2088
2089extern bool write_metadata_log;
2090
2091static bool dbg_metadatalog(void)
2092{
2093 write_metadata_log = !write_metadata_log;
2094 splashf(HZ, "Metadata log %s",
2095 write_metadata_log?"enabled":"disabled");
2096 return false;
2097}
2098
2089#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) 2099#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE)
2090static bool dbg_set_memory_guard(void) 2100static bool dbg_set_memory_guard(void)
2091{ 2101{
@@ -2360,6 +2370,7 @@ static const struct the_menu_item menuitems[] = {
2360 { "Dump ATA identify info", dbg_identify_info}, 2370 { "Dump ATA identify info", dbg_identify_info},
2361#endif 2371#endif
2362#endif 2372#endif
2373 { "Metadata log", dbg_metadatalog },
2363#ifdef HAVE_DIRCACHE 2374#ifdef HAVE_DIRCACHE
2364 { "View dircache info", dbg_dircache_info }, 2375 { "View dircache info", dbg_dircache_info },
2365#endif 2376#endif