mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
Use %zu to format size_t
commit ecd27dc7dec4248c3b7b50d691f5e093936f8feb category: bugfix issue: #I6VAS0 CVE: NA Signed-off-by: DongSenhao <dongsenhao2@huawei.com> --------------------------------------- Use %zu to format size_t as required by the POSIX standards. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: dongsenhao <dongsenhao2@huawei.com>
This commit is contained in:
parent
da00029bf5
commit
20f34a96bb
@ -1429,7 +1429,7 @@ static int f2fs_early_init_nid_bitmap(struct f2fs_sb_info *sbi)
|
||||
|
||||
if (nats_in_cursum(journal) > NAT_JOURNAL_ENTRIES) {
|
||||
MSG(0, "\tError: f2fs_init_nid_bitmap truncate n_nats(%u) to "
|
||||
"NAT_JOURNAL_ENTRIES(%lu)\n",
|
||||
"NAT_JOURNAL_ENTRIES(%zu)\n",
|
||||
nats_in_cursum(journal), NAT_JOURNAL_ENTRIES);
|
||||
journal->n_nats = cpu_to_le16(NAT_JOURNAL_ENTRIES);
|
||||
c.fix_on = 1;
|
||||
@ -2381,7 +2381,7 @@ static int build_sit_entries(struct f2fs_sb_info *sbi)
|
||||
|
||||
if (sits_in_cursum(journal) > SIT_JOURNAL_ENTRIES) {
|
||||
MSG(0, "\tError: build_sit_entries truncate n_sits(%u) to "
|
||||
"SIT_JOURNAL_ENTRIES(%lu)\n",
|
||||
"SIT_JOURNAL_ENTRIES(%zu)\n",
|
||||
sits_in_cursum(journal), SIT_JOURNAL_ENTRIES);
|
||||
journal->n_sits = cpu_to_le16(SIT_JOURNAL_ENTRIES);
|
||||
c.fix_on = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user