All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/5 v2] af9035: fix warning
       [not found] <GmailId1367538da899604d>
@ 2012-04-03  0:32 ` Gianluca Gennari
  2012-04-03 10:11   ` Antti Palosaari
  0 siblings, 1 reply; 2+ messages in thread
From: Gianluca Gennari @ 2012-04-03  0:32 UTC (permalink / raw)
  To: linux-media, crope; +Cc: m, hfvogt, mchehab, Gianluca Gennari

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 <gennarone@gmail.com>
---
 drivers/media/dvb/dvb-usb/af9035.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c
index f943c57..8bf6367 100644
--- a/drivers/media/dvb/dvb-usb/af9035.c
+++ b/drivers/media/dvb/dvb-usb/af9035.c
@@ -443,7 +443,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 */
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 4/5 v2] af9035: fix warning
  2012-04-03  0:32 ` [PATCH 4/5 v2] af9035: fix warning Gianluca Gennari
@ 2012-04-03 10:11   ` Antti Palosaari
  0 siblings, 0 replies; 2+ messages in thread
From: Antti Palosaari @ 2012-04-03 10:11 UTC (permalink / raw)
  To: Gianluca Gennari; +Cc: linux-media, m, hfvogt, mchehab

On 03.04.2012 03:32, Gianluca Gennari wrote:
> 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<gennarone@gmail.com>

Applied thanks!
http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/af9035_experimental

regards
Antti
-- 
http://palosaari.fi/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-03 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <GmailId1367538da899604d>
2012-04-03  0:32 ` [PATCH 4/5 v2] af9035: fix warning Gianluca Gennari
2012-04-03 10:11   ` Antti Palosaari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.