ANDROID: Incremental fs: fix minor printk format warning
Use the correct printk specifier [%zu] for size_t variable.
This fixes the following warning:
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:669:3: note: in expansion of macro ‘pr_warn’
669 | pr_warn("incfs: The record is too large. Size: %ld",
| ^~~~~~~
Bug: 183339614
Fixes: c6819dd778
(ANDROID: Initial commit of Incremental FS)
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: Ia784a9ced9fb6bc76e2f1baa495b3ccf568e3b1d
This commit is contained in:
parent
ee1b16e80d
commit
d83b0684e1
|
@ -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);
|
md_record_size = le16_to_cpu(md_hdr->h_record_size);
|
||||||
|
|
||||||
if (md_record_size > max_md_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);
|
md_record_size);
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue