summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index c842f40c1173..8402c34592ec 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -155,7 +155,7 @@ void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb)
struct sock *sk;
struct sk_buff *skb_copy = NULL;
- BT_DBG("hdev %p len %d", hdev, skb->len);
+ BT_DBG("hdev %pK len %d", hdev, skb->len);
read_lock(&hci_sk_list.lock);
@@ -260,7 +260,7 @@ void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb)
if (!atomic_read(&monitor_promisc))
return;
- BT_DBG("hdev %p len %d", hdev, skb->len);
+ BT_DBG("hdev %pK len %d", hdev, skb->len);
switch (bt_cb(skb)->pkt_type) {
case HCI_COMMAND_PKT:
@@ -553,7 +553,7 @@ static int hci_sock_release(struct socket *sock)
struct sock *sk = sock->sk;
struct hci_dev *hdev;
- BT_DBG("sock %p sk %p", sock, sk);
+ BT_DBG("sock %pK sk %pK", sock, sk);
if (!sk)
return 0;
@@ -753,7 +753,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr,
struct hci_dev *hdev = NULL;
int len, err = 0;
- BT_DBG("sock %p sk %p", sock, sk);
+ BT_DBG("sock %pK sk %pK", sock, sk);
if (!addr)
return -EINVAL;
@@ -931,7 +931,7 @@ static int hci_sock_getname(struct socket *sock, struct sockaddr *addr,
struct hci_dev *hdev;
int err = 0;
- BT_DBG("sock %p sk %p", sock, sk);
+ BT_DBG("sock %pK sk %pK", sock, sk);
if (peer)
return -EOPNOTSUPP;
@@ -999,7 +999,7 @@ static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
struct sk_buff *skb;
int copied, err;
- BT_DBG("sock %p, sk %p", sock, sk);
+ BT_DBG("sock %pK, sk %pK", sock, sk);
if (flags & MSG_OOB)
return -EOPNOTSUPP;
@@ -1159,7 +1159,7 @@ static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg,
struct sk_buff *skb;
int err;
- BT_DBG("sock %p sk %p", sock, sk);
+ BT_DBG("sock %pK sk %pK", sock, sk);
if (msg->msg_flags & MSG_OOB)
return -EOPNOTSUPP;
@@ -1289,7 +1289,7 @@ static int hci_sock_setsockopt(struct socket *sock, int level, int optname,
struct sock *sk = sock->sk;
int err = 0, opt = 0;
- BT_DBG("sk %p, opt %d", sk, optname);
+ BT_DBG("sk %pK, opt %d", sk, optname);
lock_sock(sk);
@@ -1372,7 +1372,7 @@ static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
struct sock *sk = sock->sk;
int len, opt, err = 0;
- BT_DBG("sk %p, opt %d", sk, optname);
+ BT_DBG("sk %pK, opt %d", sk, optname);
if (get_user(len, optlen))
return -EFAULT;
@@ -1462,7 +1462,7 @@ static int hci_sock_create(struct net *net, struct socket *sock, int protocol,
{
struct sock *sk;
- BT_DBG("sock %p", sock);
+ BT_DBG("sock %pK", sock);
if (sock->type != SOCK_RAW)
return -ESOCKTNOSUPPORT;