mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
ErrorLogのフォーマット変更に対応。
フリーフォーマットな入力に対するテストを追加。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2188 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
977ce6540a
commit
99047678f2
@ -30,7 +30,6 @@ void VBlankIntr(void);
|
|||||||
void TwlMain( void )
|
void TwlMain( void )
|
||||||
{
|
{
|
||||||
int numEntry;
|
int numEntry;
|
||||||
const ErrorLogEntry *pEntry;
|
|
||||||
|
|
||||||
OS_Init();
|
OS_Init();
|
||||||
RTC_Init();
|
RTC_Init();
|
||||||
@ -43,15 +42,23 @@ void TwlMain( void )
|
|||||||
|
|
||||||
FS_Init( FS_DMA_NOT_USE );
|
FS_Init( FS_DMA_NOT_USE );
|
||||||
InitAllocator();
|
InitAllocator();
|
||||||
|
// FS_DeleteFile("nand:/sys/log/sysmenu.log");
|
||||||
|
|
||||||
ERRORLOG_Init( Alloc, Free );
|
ERRORLOG_Init( Alloc, Free );
|
||||||
|
|
||||||
numEntry = ERRORLOG_GetNum();
|
numEntry = ERRORLOG_GetNum();
|
||||||
OS_TPrintf("API: before numEntry : %d\n", numEntry );
|
OS_TPrintf("API: before numEntry : %d\n", numEntry );
|
||||||
|
|
||||||
ERRORLOG_Write( (u64)0x077777777777LL );
|
ERRORLOG_Write( (u64)0x0200040051LL );
|
||||||
|
ERRORLOG_Printf( "%d hyoooo nyoronyoro\naboooon dogaaaaaaaan", 2+5 );
|
||||||
|
ERRORLOG_Printf( "this is overflow message!\nthis is overflow message!\nthis is overflow message!\n"
|
||||||
|
"this is overflow message!\nthis is overflow message!\nthis is overflow message!\n"
|
||||||
|
"this is overflow message!\nthis is overflow message!\nthis is overflow message!\n"
|
||||||
|
"this is overflow message!\nthis is overflow message!\nthis is overflow message!\n"
|
||||||
|
"this is overflow message!\nthis is overflow message!\nthis is overflow message!\n"
|
||||||
|
"this is overflow message!\nthis is overflow message!\nthis is overflow message!\n" );
|
||||||
|
|
||||||
|
/*
|
||||||
if( numEntry > 2 )
|
if( numEntry > 2 )
|
||||||
{
|
{
|
||||||
pEntry = ERRORLOG_Read(1);
|
pEntry = ERRORLOG_Read(1);
|
||||||
@ -64,7 +71,7 @@ void TwlMain( void )
|
|||||||
pEntry->second,
|
pEntry->second,
|
||||||
pEntry->errorCode);
|
pEntry->errorCode);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
OS_TPrintf( "*** log file data\n" );
|
OS_TPrintf( "*** log file data\n" );
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -100,7 +107,7 @@ void TwlMain( void )
|
|||||||
|
|
||||||
totalSize += nowSize;
|
totalSize += nowSize;
|
||||||
|
|
||||||
OS_TPrintf("count: numEntry : %d\n", numEntry );
|
OS_TPrintf("count: \'#\' count : %d\n", numEntry );
|
||||||
OS_TPrintf("total Size : %d\n", totalSize);
|
OS_TPrintf("total Size : %d\n", totalSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user