linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] bluetooth: fix printk format warnings
       [not found] <20120928165112.6b0f5328b72428799c3f995d@canb.auug.org.au>
@ 2012-10-01  1:44 ` Randy Dunlap
  2012-10-01 15:04   ` Gustavo Padovan
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2012-10-01  1:44 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, LKML, Marcel Holtmann, Gustavo Padovan, Johan Hedberg,
	linux-bluetooth

From: Randy Dunlap <rdunlap@xenotime.net>

Fix printk format warnings in net/bluetooth/:

net/bluetooth/hci_event.c:886:3: warning: format '%ld' expects type 'long int', but argument 2 has type 'size_t'
net/bluetooth/hci_event.c:886:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'size_t'
net/bluetooth/a2mp.c:386:2: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
M:	Marcel Holtmann <marcel@holtmann.org>
M:	Gustavo Padovan <gustavo@padovan.org>
M:	Johan Hedberg <johan.hedberg@gmail.com>
L:	linux-bluetooth@vger.kernel.org
---
 net/bluetooth/a2mp.c      |    2 +-
 net/bluetooth/hci_event.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20120928.orig/net/bluetooth/a2mp.c
+++ linux-next-20120928/net/bluetooth/a2mp.c
@@ -383,7 +383,7 @@ static int a2mp_getampassoc_rsp(struct a
 	if (len < sizeof(*rsp))
 		return -EINVAL;
 
-	BT_DBG("id %d status 0x%2.2x assoc len %lu", rsp->id, rsp->status,
+	BT_DBG("id %d status 0x%2.2x assoc len %zu", rsp->id, rsp->status,
 	       len - sizeof(*rsp));
 
 	if (rsp->status)
--- linux-next-20120928.orig/net/bluetooth/hci_event.c
+++ linux-next-20120928/net/bluetooth/hci_event.c
@@ -883,7 +883,7 @@ static void hci_cc_read_local_amp_assoc(
 	rem_len = __le16_to_cpu(rp->rem_len);
 
 	if (rem_len > frag_len) {
-		BT_DBG("frag_len %ld rem_len %ld", frag_len, rem_len);
+		BT_DBG("frag_len %zu rem_len %zu", frag_len, rem_len);
 
 		memcpy(assoc->data + assoc->offset, rp->frag, frag_len);
 		assoc->offset += frag_len;

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

* Re: [PATCH -next] bluetooth: fix printk format warnings
  2012-10-01  1:44 ` [PATCH -next] bluetooth: fix printk format warnings Randy Dunlap
@ 2012-10-01 15:04   ` Gustavo Padovan
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Padovan @ 2012-10-01 15:04 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Stephen Rothwell, linux-next, LKML, Marcel Holtmann,
	Johan Hedberg, linux-bluetooth

Hi Randy,

* Randy Dunlap <rdunlap@xenotime.net> [2012-09-30 18:44:55 -0700]:

> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Fix printk format warnings in net/bluetooth/:
> 
> net/bluetooth/hci_event.c:886:3: warning: format '%ld' expects type 'long int', but argument 2 has type 'size_t'
> net/bluetooth/hci_event.c:886:3: warning: format '%ld' expects type 'long int', but argument 3 has type 'size_t'
> net/bluetooth/a2mp.c:386:2: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'
> 
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> M:	Marcel Holtmann <marcel@holtmann.org>
> M:	Gustavo Padovan <gustavo@padovan.org>
> M:	Johan Hedberg <johan.hedberg@gmail.com>
> L:	linux-bluetooth@vger.kernel.org
> ---
>  net/bluetooth/a2mp.c      |    2 +-
>  net/bluetooth/hci_event.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

This is fixed on bluetooth-next already, thanks for the patch anyway.

	Gustavo

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120928165112.6b0f5328b72428799c3f995d@canb.auug.org.au>
2012-10-01  1:44 ` [PATCH -next] bluetooth: fix printk format warnings Randy Dunlap
2012-10-01 15:04   ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).