Prettify debug menu for logf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23717 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
38dde55c27
commit
e5c2d94171
2 changed files with 5 additions and 2 deletions
|
@ -2635,8 +2635,8 @@ static const struct the_menu_item menuitems[] = {
|
|||
{ "View PIC info", dbg_pic },
|
||||
#endif
|
||||
#ifdef ROCKBOX_HAS_LOGF
|
||||
{"logf", logfdisplay },
|
||||
{"logfdump", logfdump },
|
||||
{"Show Log File", logfdisplay },
|
||||
{"Dump Log File", logfdump },
|
||||
#endif
|
||||
#if defined(HAVE_USBSTACK)
|
||||
#if defined(ROCKBOX_HAS_LOGF) && defined(USB_ENABLE_SERIAL)
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "settings.h"
|
||||
#include "logfdisp.h"
|
||||
#include "action.h"
|
||||
#include "splash.h"
|
||||
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
int compute_nb_lines(int w, struct font* font)
|
||||
|
@ -225,6 +226,8 @@ bool logfdump(void)
|
|||
{
|
||||
int fd;
|
||||
|
||||
splashf(HZ, "Log File Dumped");
|
||||
|
||||
/* nothing to print ? */
|
||||
if(logfindex == 0 && !logfwrap)
|
||||
/* nothing is logged just yet */
|
||||
|
|
Loading…
Reference in a new issue