Lines Matching refs:printf

51     printf("test_diskio(%u, %u, 0x%08X, 0x%08X)\n", pdrv, ncyc, (UINT)buff, sz_buff);

54 printf("Insufficient work area to run the program.\n");
59 printf("**** Test cycle %u of %u start ****\n", cc, ncyc);
61 printf(" disk_initalize(%u)", pdrv);
64 printf(" - failed.\n");
67 printf(" - ok.\n");
70 printf("**** Get drive size ****\n");
71 printf(" disk_ioctl(%u, GET_SECTOR_COUNT, 0x%08X)", pdrv, (UINT)&sz_drv);
75 printf(" - ok.\n");
77 printf(" - failed.\n");
81 printf("Failed: Insufficient drive size to test.\n");
84 printf(" Number of sectors on the drive %u is %lu.\n", pdrv, sz_drv);
87 printf("**** Get sector size ****\n");
88 printf(" disk_ioctl(%u, GET_SECTOR_SIZE, 0x%X)", pdrv, (UINT)&sz_sect);
92 printf(" - ok.\n");
94 printf(" - failed.\n");
97 printf(" Size of sector is %u bytes.\n", sz_sect);
102 printf("**** Get block size ****\n");
103 printf(" disk_ioctl(%u, GET_BLOCK_SIZE, 0x%X)", pdrv, (UINT)&sz_eblk);
107 printf(" - ok.\n");
109 printf(" - failed.\n");
112 printf(" Size of the erase block is %lu sectors.\n", sz_eblk);
114 printf(" Size of the erase block is unknown.\n");
118 printf("**** Single sector write test ****\n");
121 printf(" disk_write(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba);
124 printf(" - ok.\n");
126 printf(" - failed.\n");
129 printf(" disk_ioctl(%u, CTRL_SYNC, NULL)", pdrv);
132 printf(" - ok.\n");
134 printf(" - failed.\n");
138 printf(" disk_read(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba);
141 printf(" - ok.\n");
143 printf(" - failed.\n");
148 printf(" Read data matched.\n");
150 printf(" Read data differs from the data written.\n");
155 printf("**** Multiple sector write test ****\n");
160 printf(" disk_write(%u, 0x%X, %lu, %u)", pdrv, (UINT)pbuff, lba, ns);
163 printf(" - ok.\n");
165 printf(" - failed.\n");
168 printf(" disk_ioctl(%u, CTRL_SYNC, NULL)", pdrv);
171 printf(" - ok.\n");
173 printf(" - failed.\n");
177 printf(" disk_read(%u, 0x%X, %lu, %u)", pdrv, (UINT)pbuff, lba, ns);
180 printf(" - ok.\n");
182 printf(" - failed.\n");
187 printf(" Read data matched.\n");
189 printf(" Read data differs from the data written.\n");
193 printf(" Test skipped.\n");
197 printf("**** Single sector write test (unaligned buffer address) ****\n");
200 printf(" disk_write(%u, 0x%X, %lu, 1)", pdrv, (UINT)(pbuff+3), lba);
203 printf(" - ok.\n");
205 printf(" - failed.\n");
208 printf(" disk_ioctl(%u, CTRL_SYNC, NULL)", pdrv);
211 printf(" - ok.\n");
213 printf(" - failed.\n");
217 printf(" disk_read(%u, 0x%X, %lu, 1)", pdrv, (UINT)(pbuff+5), lba);
220 printf(" - ok.\n");
222 printf(" - failed.\n");
227 printf(" Read data matched.\n");
229 printf(" Read data differs from the data written.\n");
234 printf("**** 4GB barrier test ****\n");
238 printf(" disk_write(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba);
241 printf(" - ok.\n");
243 printf(" - failed.\n");
246 printf(" disk_write(%u, 0x%X, %lu, 1)", pdrv, (UINT)(pbuff+sz_sect), lba2);
249 printf(" - ok.\n");
251 printf(" - failed.\n");
254 printf(" disk_ioctl(%u, CTRL_SYNC, NULL)", pdrv);
257 printf(" - ok.\n");
259 printf(" - failed.\n");
263 printf(" disk_read(%u, 0x%X, %lu, 1)", pdrv, (UINT)pbuff, lba);
266 printf(" - ok.\n");
268 printf(" - failed.\n");
271 printf(" disk_read(%u, 0x%X, %lu, 1)", pdrv, (UINT)(pbuff+sz_sect), lba2);
274 printf(" - ok.\n");
276 printf(" - failed.\n");
281 printf(" Read data matched.\n");
283 printf(" Read data differs from the data written.\n");
287 printf(" Test skipped.\n");
291 printf("**** Test cycle %u of %u completed ****\n\n", cc, ncyc);
308 printf("Sorry the function/compatibility test failed. (rc=%d)\nFatFs will not work with this disk driver.\n", rc);
310 printf("Congratulations! The disk driver works well.\n");