mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-04 13:49:08 +00:00
examples/media: Add some more informative output
This commit is contained in:
parent
ae8e89eed0
commit
7f0ff3a6db
1 changed files with 5 additions and 0 deletions
|
|
@ -146,6 +146,7 @@ int media_main(int argc, char *argv[])
|
|||
/* Get the block size to use */
|
||||
|
||||
get_blocksize(fd, &info);
|
||||
|
||||
printf("Using:\n");
|
||||
printf(" blocksize: %lu\n", (unsigned long)info.blocksize);
|
||||
printf(" nblocks: %lu\n", (unsigned long)info.nblocks);
|
||||
|
|
@ -179,6 +180,8 @@ int media_main(int argc, char *argv[])
|
|||
|
||||
for (blockno = 0; info.nblocks == 0 || blockno < info.nblocks; blockno++)
|
||||
{
|
||||
printf("Write/Verify: Block %lu\n", (unsigned long)blockno);
|
||||
|
||||
/* Fill buffer with a (possibly) unique pattern */
|
||||
|
||||
for (i = 0; i < info.nblocks; i++)
|
||||
|
|
@ -326,6 +329,8 @@ int media_main(int argc, char *argv[])
|
|||
|
||||
for (blockno = 0; blockno < info.nblocks; blockno++)
|
||||
{
|
||||
printf("Re-read/Verify: Block %lu\n", (unsigned long)blockno);
|
||||
|
||||
/* Fill buffer with a (possibly) unique pattern */
|
||||
|
||||
for (i = 0; i < info.nblocks; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue