Fix the printf warning after blkcnt_t change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-07-22 15:40:39 +08:00 committed by Xiang Xiao
parent f4b84c0ba7
commit 8ba32a8c16

View File

@ -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 * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
@ -154,8 +154,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 (%" PRId32 ferr("ERROR: User maxblocks (%" PRId32
") exceeds blocks on device (%" PRIu32 ")\n", ") exceeds blocks on device (%ju)\n",
fmt->ff_nsectors, geometry.geo_nsectors); fmt->ff_nsectors, (uintmax_t)geometry.geo_nsectors);
return -EINVAL; return -EINVAL;
} }