ANDROID: Incremental fs: Fix printk format warnings in format.c

fs/incfs/format.c: In function 'incfs_read_next_metadata_record':
./include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat=]
fs/incfs/format.c:619:3: note: in expansion of macro 'pr_warn'
   pr_warn("incfs: The record is too large. Size: %ld",
   ^~~~~~~

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1a0b1e32761dd4358ff3ca210041893373f0a1a5
This commit is contained in:
Tao Huang
2020-12-09 18:16:48 +08:00
parent 85c88d7580
commit 784f0cee89

View File

@@ -666,7 +666,7 @@ int incfs_read_next_metadata_record(struct backing_file_context *bfc,
md_record_size = le16_to_cpu(md_hdr->h_record_size);
if (md_record_size > max_md_size) {
pr_warn("incfs: The record is too large. Size: %ld",
pr_warn("incfs: The record is too large. Size: %zu",
md_record_size);
return -EBADMSG;
}