summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index a4bfe65b1c..71c0395e6e 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -2307,8 +2307,9 @@ static bool cpu_boost_log_dump(void)
2307 return false; 2307 return false;
2308 2308
2309#if CONFIG_RTC 2309#if CONFIG_RTC
2310 char fname[MAX_PATH];
2310 struct tm *nowtm = get_time(); 2311 struct tm *nowtm = get_time();
2311 fd = open_pathfmt(O_CREAT|O_WRONLY|O_TRUNC, 2312 fd = open_pathfmt(fname, sizeof(fname), O_CREAT|O_WRONLY|O_TRUNC,
2312 "%s/boostlog_%04d%02d%02d%02d%02d%02d.txt", ROCKBOX_DIR, 2313 "%s/boostlog_%04d%02d%02d%02d%02d%02d.txt", ROCKBOX_DIR,
2313 nowtm->tm_year + 1900, nowtm->tm_mon + 1, nowtm->tm_mday, 2314 nowtm->tm_year + 1900, nowtm->tm_mon + 1, nowtm->tm_mday,
2314 nowtm->tm_hour, nowtm->tm_min, nowtm->tm_sec); 2315 nowtm->tm_hour, nowtm->tm_min, nowtm->tm_sec);