From 38408468ba8e4440845619dafe1c40d5a31f42c8 Mon Sep 17 00:00:00 2001 From: aoki_ryoma Date: Fri, 11 Jul 2008 07:35:38 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E6=99=82=E3=81=AB?= =?UTF-8?q?=E3=82=B4=E3=83=9F=E3=81=8C=E6=AE=8B=E3=82=89=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=ABnand:/tmp=E4=BB=A5=E4=B8=8B=E3=82=92?= =?UTF-8?q?=E5=88=A9=E7=94=A8=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F=E3=80=82=20=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=81=AE=E3=83=AA=E3=82=B6=E3=83=AB=E3=83=88=E3=83=A1=E3=83=83?= =?UTF-8?q?=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92=E5=BF=83=E6=8C=81=E3=81=A1?= =?UTF-8?q?=E8=A6=AA=E5=88=87=E3=81=AB=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1857 b08762b0-b915-fc4b-9d8c-17b2551a87ff --- build/tests/FileRecoveryTest/src/main.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/build/tests/FileRecoveryTest/src/main.c b/build/tests/FileRecoveryTest/src/main.c index ea17d7fd..460c313b 100644 --- a/build/tests/FileRecoveryTest/src/main.c +++ b/build/tests/FileRecoveryTest/src/main.c @@ -18,12 +18,13 @@ #include #include +static char *s_strResult[4]; void VBlankIntr(void); void TwlMain( void ) { - char path[] = "nand:/shared2/a/b/c/d/hogehoge.dat"; + char path[] = "nand:/tmp/a/b/c/d/hogehoge.dat"; UTL_RecoveryStatus result; OS_Init(); @@ -35,10 +36,11 @@ void TwlMain( void ) GX_VBlankIntr(TRUE); - // とりあえずファイルサイズに4KB指定 - result = UTL_RecoveryFile( path, 0x1000 ); + // とりあえずファイルサイズに16byte指定 + result = UTL_RecoveryFile( path, 0x0010 ); OS_TPrintf("recovery result: %d\n", result); + OS_TPrintf("%s\n", s_strResult[result] ); OS_TPrintf( "*** End of demo\n" ); OS_Terminate(); @@ -49,3 +51,10 @@ void VBlankIntr(void) { OS_SetIrqCheckFlag(OS_IE_V_BLANK); } + +static char *s_strResult[] = { + "Target file exists and file size matched.", + "File size didn't match. Changing size succeeded.", + "Target file didn't exist. Creating file and setting size succeeded.", + "ERROR: File Recovery Failed." +}; \ No newline at end of file