Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 934b9d1e authored by John W. Linville's avatar John W. Linville
Browse files

wl18xx: avoid some -Wformat warnings



  CC      drivers/net/wireless/ti/wl18xx/main.o
drivers/net/wireless/ti/wl18xx/main.c: In function ‘wl18xx_conf_init’:
drivers/net/wireless/ti/wl18xx/main.c:1024:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
drivers/net/wireless/ti/wl18xx/main.c:1024:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent bf34e683
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1022,7 +1022,8 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev)


	if (fw->size != WL18XX_CONF_SIZE) {
	if (fw->size != WL18XX_CONF_SIZE) {
		wl1271_error("configuration binary file size is wrong, "
		wl1271_error("configuration binary file size is wrong, "
			     "expected %d got %d", WL18XX_CONF_SIZE, fw->size);
			     "expected %ld got %zd",
			     WL18XX_CONF_SIZE, fw->size);
		ret = -EINVAL;
		ret = -EINVAL;
		goto out;
		goto out;
	}
	}