mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user