Bluetooth: Fix two warnings in BT_DBG
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 27 Sep 2012 20:42:07 +0000 (17:42 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 27 Sep 2012 20:43:39 +0000 (17:43 -0300)
We just need to use the right modifiers

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/a2mp.c
net/bluetooth/hci_event.c

index 47565d28b27feea1d8861ce4171318ca6be4c8ac..61e657ae71e974162dd4852be80df9c374f48050 100644 (file)
@@ -383,7 +383,7 @@ static int a2mp_getampassoc_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
        if (len < sizeof(*rsp))
                return -EINVAL;
 
-       BT_DBG("id %d status 0x%2.2x assoc len %u", rsp->id, rsp->status,
+       BT_DBG("id %d status 0x%2.2x assoc len %lu", rsp->id, rsp->status,
               len - sizeof(*rsp));
 
        if (rsp->status)
index 7e716698fe6459dc0e2d7a4000758b2b4adfb3e2..2551c4b9d65e10bdc68c77624857f506b7a9af77 100644 (file)
@@ -883,7 +883,7 @@ static void hci_cc_read_local_amp_assoc(struct hci_dev *hdev,
        rem_len = __le16_to_cpu(rp->rem_len);
 
        if (rem_len > frag_len) {
-               BT_DBG("frag_len %d rem_len %d", frag_len, rem_len);
+               BT_DBG("frag_len %ld rem_len %ld", frag_len, rem_len);
 
                memcpy(assoc->data + assoc->offset, rp->frag, frag_len);
                assoc->offset += frag_len;