mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
benchmarks/mtd: use PRIxxx macro to improve portability
To improve portability, use `PRIxxx` macro instead of int/long int format specifiers. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
This commit is contained in:
parent
b80e444aea
commit
cf1d5bb08b
2 changed files with 3 additions and 4 deletions
|
|
@ -6,8 +6,7 @@
|
|||
config BENCHMARK_MTD
|
||||
tristate "MTD test and transfer rate benchmark"
|
||||
default n
|
||||
depends on BUILD_FLAT && MTD
|
||||
select LIBC_FLOATINGPOINT
|
||||
depends on BUILD_FLAT && MTD && LIBC_FLOATINGPOINT
|
||||
---help---
|
||||
This testing/benchmark application performs an erase/write
|
||||
operation to evaluate write transfer rate and then reads the
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ int main(int argc, FAR char *argv[])
|
|||
ret = inode->u.i_bops->ioctl(inode, MTDIOC_GEOMETRY, (unsigned long) &geo);
|
||||
if (ret != OK)
|
||||
{
|
||||
fprintf(stderr, "Device is not a MTD device\n");
|
||||
fprintf(stderr, "Device is not a MTD device");
|
||||
goto errout_with_driver;
|
||||
}
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ int main(int argc, FAR char *argv[])
|
|||
printf("FLASH device parameters:\n");
|
||||
printf(" Sector size: %10d\n", info.sectorsize);
|
||||
printf(" Sector count: %10d\n", info.numsectors);
|
||||
printf(" Erase block: %10d\n", geo.erasesize);
|
||||
printf(" Erase block: %10" PRIx32 "\n", geo.erasesize);
|
||||
printf(" Total size: %10d\n", info.sectorsize * info.numsectors);
|
||||
|
||||
if (info.sectorsize != geo.erasesize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue