DRESULT dr;\r
\r
\r
-\r
printf("test_diskio(%u, %u, 0x%08X, 0x%08X)\n", pdrv, ncyc, (UINT)buff, sz_buff);\r
\r
if (sz_buff < _MAX_SS + 4) {\r
DWORD buff[512]; /* 2048 byte working buffer */\r
\r
/* Check function/compatibility of the physical drive #0 */\r
- rc = test_diskio(0, 1, buff, sizeof buff);\r
- if (res) {\r
- printf("Sorry the function/compatibility test failed.\nFatFs will not work on this disk driver.\n");\r
+ rc = test_diskio(0, 3, buff, sizeof buff);\r
+ if (rc) {\r
+ printf("Sorry the function/compatibility test failed. (rc=%d)\nFatFs will not work on this disk driver.\n", rc);\r
} else {\r
- printf("Congratulations! The disk I/O layer works well.\n");\r
+ printf("Congratulations! The disk driver works well.\n");\r
}\r
\r
return rc;\r