summaryrefslogtreecommitdiff
path: root/net/bluetooth/af_bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r--net/bluetooth/af_bluetooth.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 709ce9fb15f3..5edc3212fb2a 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -183,7 +183,7 @@ EXPORT_SYMBOL(bt_sock_unlink);
void bt_accept_enqueue(struct sock *parent, struct sock *sk)
{
- BT_DBG("parent %p, sk %p", parent, sk);
+ BT_DBG("parent %pK, sk %pK", parent, sk);
sock_hold(sk);
list_add_tail(&bt_sk(sk)->accept_q, &bt_sk(parent)->accept_q);
@@ -194,7 +194,7 @@ EXPORT_SYMBOL(bt_accept_enqueue);
void bt_accept_unlink(struct sock *sk)
{
- BT_DBG("sk %p state %d", sk, sk->sk_state);
+ BT_DBG("sk %pK state %d", sk, sk->sk_state);
list_del_init(&bt_sk(sk)->accept_q);
bt_sk(sk)->parent->sk_ack_backlog--;
@@ -208,7 +208,7 @@ struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock)
struct list_head *p, *n;
struct sock *sk;
- BT_DBG("parent %p", parent);
+ BT_DBG("parent %pK", parent);
list_for_each_safe(p, n, &bt_sk(parent)->accept_q) {
sk = (struct sock *) list_entry(p, struct bt_sock, accept_q);
@@ -248,7 +248,7 @@ int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
size_t copied;
int err;
- BT_DBG("sock %p sk %p len %zu", sock, sk, len);
+ BT_DBG("sock %pK sk %pK len %zu", sock, sk, len);
if (flags & MSG_OOB)
return -EOPNOTSUPP;
@@ -323,7 +323,7 @@ int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
if (flags & MSG_OOB)
return -EOPNOTSUPP;
- BT_DBG("sk %p size %zu", sk, size);
+ BT_DBG("sk %pK size %zu", sk, size);
lock_sock(sk);
@@ -439,7 +439,7 @@ unsigned int bt_sock_poll(struct file *file, struct socket *sock,
struct sock *sk = sock->sk;
unsigned int mask = 0;
- BT_DBG("sock %p, sk %p", sock, sk);
+ BT_DBG("sock %pK, sk %pK", sock, sk);
poll_wait(file, sk_sleep(sk), wait);
@@ -483,7 +483,7 @@ int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
long amount;
int err;
- BT_DBG("sk %p cmd %x arg %lx", sk, cmd, arg);
+ BT_DBG("sk %pK cmd %x arg %lx", sk, cmd, arg);
switch (cmd) {
case TIOCOUTQ:
@@ -530,7 +530,7 @@ int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
DECLARE_WAITQUEUE(wait, current);
int err = 0;
- BT_DBG("sk %p", sk);
+ BT_DBG("sk %pK", sk);
add_wait_queue(sk_sleep(sk), &wait);
set_current_state(TASK_INTERRUPTIBLE);
@@ -567,7 +567,7 @@ int bt_sock_wait_ready(struct sock *sk, unsigned long flags)
unsigned long timeo;
int err = 0;
- BT_DBG("sk %p", sk);
+ BT_DBG("sk %pK", sk);
timeo = sock_sndtimeo(sk, flags & O_NONBLOCK);