Skip to content

Commit

Permalink
[media] af9035: fix warning
Browse files Browse the repository at this point in the history
On a 32 bit system:

af9035.c: In function 'af9035_download_firmware':
af9035.c:446:3: warning: format '%lu' expects argument of type 'long unsigned
int', but argument 3 has type 'unsigned int' [-Wformat]

%zu avoids any warning on both 32 and 64 bit systems.

Signed-off-by: Gianluca Gennari <[email protected]>
Signed-off-by: Antti Palosaari <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
gennar1 authored and Mauro Carvalho Chehab committed Apr 9, 2012
1 parent b1a9599 commit 6ec1298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/af9035.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ static int af9035_download_firmware(struct usb_device *udev,

i -= hdr_data_len + HDR_SIZE;

pr_debug("%s: data uploaded=%lu\n", __func__, fw->size - i);
pr_debug("%s: data uploaded=%zu\n", __func__, fw->size - i);
}

/* firmware loaded, request boot */
Expand Down

0 comments on commit 6ec1298

Please sign in to comment.