Skip to content

Commit

Permalink
Fix the printf warning after blkcnt_t change
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 committed Jul 22, 2021
1 parent f4b84c0 commit 8ba32a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fsutils/mkfatfs/mkfatfs.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* apps/fsutils/mkfatfs/writefat.c
* apps/fsutils/mkfatfs/mkfatfs.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand Down Expand Up @@ -154,8 +154,8 @@ static inline int mkfatfs_getgeometry(FAR struct fat_format_s *fmt,
if (fmt->ff_nsectors > geometry.geo_nsectors)
{
ferr("ERROR: User maxblocks (%" PRId32
") exceeds blocks on device (%" PRIu32 ")\n",
fmt->ff_nsectors, geometry.geo_nsectors);
") exceeds blocks on device (%ju)\n",
fmt->ff_nsectors, (uintmax_t)geometry.geo_nsectors);

return -EINVAL;
}
Expand Down

0 comments on commit 8ba32a8

Please sign in to comment.