aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-08-26 15:45:34 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2022-09-07 19:08:38 -0700
commit986c1f18ec69d2d49ba42396095cc3812283b998 (patch)
tree20b57bff39d07941aeca4c6349b2f1c26ca4e354
parent0d6acbe2ec4ca7de7f3f9e647cbdd6ae8adc6316 (diff)
downloadf2fs-tools-986c1f18ec69d2d49ba42396095cc3812283b998.tar.gz
Fix format strings in log messages
Make the argument list match the format string. Use PRIu64 for uint64_t and %zu for size_t. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--fsck/sload.c2
-rw-r--r--lib/libf2fs.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/fsck/sload.c b/fsck/sload.c
index 00c3403..ae18c04 100644
--- a/fsck/sload.c
+++ b/fsck/sload.c
@@ -318,7 +318,7 @@ static int configure_files(void)
#else
sehnd = selinux_android_file_context_handle();
if (!sehnd) {
- ERR_MSG("Failed to get android file_contexts\n", c.mount_point);
+ ERR_MSG("Failed to get android file_contexts\n");
return -EINVAL;
}
#endif
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index ecaa2e9..f63307a 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -1046,7 +1046,7 @@ int get_device_info(int i)
}
if (!is_power_of_2(dev->zone_size)) {
- MSG(0, "\tError: zoned: illegal zone size %lu (not a power of 2)\n",
+ MSG(0, "\tError: zoned: illegal zone size %" PRIu64 "u (not a power of 2)\n",
dev->zone_size);
free(stat_buf);
return -1;
@@ -1064,10 +1064,10 @@ int get_device_info(int i)
MSG(0, "Info: Host-%s zoned block device:\n",
(dev->zoned_model == F2FS_ZONED_HA) ?
"aware" : "managed");
- MSG(0, " %u zones, %lu zone size(bytes), %u randomly writeable zones\n",
+ MSG(0, " %u zones, %" PRIu64 "u zone size(bytes), %u randomly writeable zones\n",
dev->nr_zones, dev->zone_size,
dev->nr_rnd_zones);
- MSG(0, " %lu blocks per zone\n",
+ MSG(0, " %zu blocks per zone\n",
dev->zone_blocks);
}
#endif