ErrorLogのフォーマット変更に対応。

フリーフォーマットな入力に対するテストを追加。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2188 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
aoki_ryoma 2008-08-19 06:32:23 +00:00
parent 977ce6540a
commit 99047678f2
2 changed files with 12 additions and 5 deletions

View File

@ -30,7 +30,6 @@ void VBlankIntr(void);
void TwlMain( void )
{
int numEntry;
const ErrorLogEntry *pEntry;
OS_Init();
RTC_Init();
@ -43,15 +42,23 @@ void TwlMain( void )
FS_Init( FS_DMA_NOT_USE );
InitAllocator();
// FS_DeleteFile("nand:/sys/log/sysmenu.log");
ERRORLOG_Init( Alloc, Free );
numEntry = ERRORLOG_GetNum();
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 )
{
pEntry = ERRORLOG_Read(1);
@ -64,7 +71,7 @@ void TwlMain( void )
pEntry->second,
pEntry->errorCode);
}
*/
OS_TPrintf( "*** log file data\n" );
{
@ -100,7 +107,7 @@ void TwlMain( void )
totalSize += nowSize;
OS_TPrintf("count: numEntry : %d\n", numEntry );
OS_TPrintf("count: \'#\' count : %d\n", numEntry );
OS_TPrintf("total Size : %d\n", totalSize);
}