examples/media/media_main.c: Fix printf format warnings
This commit is contained in:
parent
780891f8aa
commit
0d3fde2d6b
@ -41,6 +41,7 @@
|
|||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@ -217,16 +218,16 @@ int main(int argc, FAR char *argv[])
|
|||||||
{
|
{
|
||||||
int errcode = errno;
|
int errcode = errno;
|
||||||
|
|
||||||
fprintf(stderr, "ERROR: lseek to %lu failed: %d\n",
|
fprintf(stderr, "ERROR: lseek to %ju failed: %d\n",
|
||||||
(unsigned long)pos, errcode);
|
(uintmax_t)pos, errcode);
|
||||||
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
||||||
info.nblocks = blockno;
|
info.nblocks = blockno;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (seekpos != pos)
|
else if (seekpos != pos)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: lseek failed: %lu vs %lu\n",
|
fprintf(stderr, "ERROR: lseek failed: %ju vs %ju\n",
|
||||||
(unsigned)seekpos, (unsigned long) pos);
|
(uintmax_t)seekpos, (uintmax_t) pos);
|
||||||
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
||||||
info.nblocks = blockno;
|
info.nblocks = blockno;
|
||||||
break;
|
break;
|
||||||
@ -259,16 +260,16 @@ int main(int argc, FAR char *argv[])
|
|||||||
{
|
{
|
||||||
int errcode = errno;
|
int errcode = errno;
|
||||||
|
|
||||||
fprintf(stderr, "ERROR: lseek to %lu failed: %d\n",
|
fprintf(stderr, "ERROR: lseek to %ju failed: %d\n",
|
||||||
(unsigned long)pos, errcode);
|
(uintmax_t)pos, errcode);
|
||||||
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
||||||
info.nblocks = blockno;
|
info.nblocks = blockno;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (seekpos != pos)
|
else if (seekpos != pos)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: lseek failed: %lu vs %lu\n",
|
fprintf(stderr, "ERROR: lseek failed: %ju vs %ju\n",
|
||||||
(unsigned)seekpos, (unsigned long) pos);
|
(uintmax_t)seekpos, (uintmax_t)pos);
|
||||||
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
fprintf(stderr, "ERROR: Aborting at block: %lu\n", blockno);
|
||||||
info.nblocks = blockno;
|
info.nblocks = blockno;
|
||||||
break;
|
break;
|
||||||
@ -339,8 +340,8 @@ int main(int argc, FAR char *argv[])
|
|||||||
}
|
}
|
||||||
else if (seekpos != 0)
|
else if (seekpos != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: lseek to 0 failed: %lu\n",
|
fprintf(stderr, "ERROR: lseek to 0 failed: %ju\n",
|
||||||
(unsigned)seekpos);
|
(uintmax_t)seekpos);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Re-read and verify each sector */
|
/* Re-read and verify each sector */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user