fsutils/mkfatfs/mkfatfs.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-20 19:33:06 +09:00 committed by Xiang Xiao
parent 73fb7baa05
commit 2319502ea3

View File

@ -141,7 +141,7 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
if (!geometry.geo_available || !geometry.geo_writeenabled) if (!geometry.geo_available || !geometry.geo_writeenabled)
{ {
ferr("ERROR: Media is not available\n", ret); ferr("ERROR: Media is not available\n");
return -ENODEV; return -ENODEV;
} }
@ -153,7 +153,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
{ {
if (fmt->ff_nsectors > geometry.geo_nsectors) if (fmt->ff_nsectors > geometry.geo_nsectors)
{ {
ferr("ERROR: User maxblocks (%d) exceeds blocks on device (%d)\n", ferr("ERROR: User maxblocks (%" PRId32
") exceeds blocks on device (%d)\n",
fmt->ff_nsectors, geometry.geo_nsectors); fmt->ff_nsectors, geometry.geo_nsectors);
return -EINVAL; return -EINVAL;
@ -188,7 +189,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
break; break;
default: default:
ferr("ERROR: Unsupported sector size: %d\n", var->fv_sectorsize); ferr("ERROR: Unsupported sector size: %" PRId32 "\n",
var->fv_sectorsize);
return -EPERM; return -EPERM;
} }