net: wireless: bcmdhd: Fix compile warning when CONFIG_BCMDHD_REQUEST_FW=y

drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_common.c:7852:50: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                                        DHD_ERROR(("fw->size = %d, *length = %d\n", fw->size, *length));
                                                               ~~                   ^~~~~~~~
                                                               %lu

Fixes: 6513b9fbdd ("net: wireless: update bcmdhd driver to 101.10.361.20")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia2cce87e3392174f8a6165494e1c7962ae07bd93
This commit is contained in:
Tao Huang
2022-07-26 19:59:23 +08:00
parent 21b6402519
commit 95376bf834

View File

@@ -7849,7 +7849,7 @@ int dhd_get_download_buffer(dhd_pub_t *dhd, char *file_path, download_type_t com
goto err;
} else {
if ((fw->size <= 0 || fw->size > *length)) {
DHD_ERROR(("fw->size = %d, *length = %d\n", fw->size, *length));
DHD_ERROR(("fw->size = %zu, *length = %d\n", fw->size, *length));
*length = fw->size;
goto err;
}