mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 13:45:03 -05:00
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 },
|
{ "View PIC info", dbg_pic },
|
||||||
#endif
|
#endif
|
||||||
#ifdef ROCKBOX_HAS_LOGF
|
#ifdef ROCKBOX_HAS_LOGF
|
||||||
{"logf", logfdisplay },
|
{"Show Log File", logfdisplay },
|
||||||
{"logfdump", logfdump },
|
{"Dump Log File", logfdump },
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_USBSTACK)
|
#if defined(HAVE_USBSTACK)
|
||||||
#if defined(ROCKBOX_HAS_LOGF) && defined(USB_ENABLE_SERIAL)
|
#if defined(ROCKBOX_HAS_LOGF) && defined(USB_ENABLE_SERIAL)
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "logfdisp.h"
|
#include "logfdisp.h"
|
||||||
#include "action.h"
|
#include "action.h"
|
||||||
|
#include "splash.h"
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
int compute_nb_lines(int w, struct font* font)
|
int compute_nb_lines(int w, struct font* font)
|
||||||
|
|
@ -225,6 +226,8 @@ bool logfdump(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
splashf(HZ, "Log File Dumped");
|
||||||
|
|
||||||
/* nothing to print ? */
|
/* nothing to print ? */
|
||||||
if(logfindex == 0 && !logfwrap)
|
if(logfindex == 0 && !logfwrap)
|
||||||
/* nothing is logged just yet */
|
/* nothing is logged just yet */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue