summaryrefslogtreecommitdiff
path: root/cnss_prealloc
diff options
context:
space:
mode:
authorVictor Hsu <hsuvictor@google.com>2021-11-26 16:20:36 +0800
committerVictor Hsu <hsuvictor@google.com>2021-12-13 13:40:00 +0800
commit749813d67d19088575e70e142343b60ffc1bd482 (patch)
tree246b38a1b7f5124e5f09326d9f450030c7c05e63 /cnss_prealloc
parent84364e386a0abebdf85e149073ec8e040b05800a (diff)
downloadcnss2-749813d67d19088575e70e142343b60ffc1bd482.tar.gz
wcn6740: Format specifies type does not match the argument type
The [-Werror,-Wformat] compiler option is enabled. Fix the compiler errors that format specifies type does not match the argument type. Bug: 207814349 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: Ifdab57c1c24d9c8b3888daa15700dea596e4a451
Diffstat (limited to 'cnss_prealloc')
-rw-r--r--cnss_prealloc/cnss_prealloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cnss_prealloc/cnss_prealloc.c b/cnss_prealloc/cnss_prealloc.c
index 77c4497..1a29d91 100644
--- a/cnss_prealloc/cnss_prealloc.c
+++ b/cnss_prealloc/cnss_prealloc.c
@@ -115,7 +115,7 @@ static int cnss_pool_init(void)
continue;
}
- pr_info("cnss_prealloc: created mempool %s of min size %d * %d\n",
+ pr_info("cnss_prealloc: created mempool %s of min size %d * %zu\n",
cnss_pools[i].name, cnss_pools[i].min,
cnss_pools[i].size);
}
@@ -212,7 +212,7 @@ void *wcnss_prealloc_get(size_t size)
}
if (!mem && size >= cnss_pool_alloc_threshold()) {
- pr_debug("cnss_prealloc: not available for size %d, flag %x\n",
+ pr_debug("cnss_prealloc: not available for size %zu, flag %x\n",
size, gfp_mask);
}