Bluetooth: Add L2CAP mode to debugfs output
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 10 Feb 2011 16:16:06 +0000 (14:16 -0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 15 Feb 2011 12:45:53 +0000 (09:45 -0300)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap_core.c

index bd88641b4ae7e79d495919e46760d1faa151c6fd..a72d6e4eab4f9dae97f9c4e006e51fd14d77141d 100644 (file)
@@ -3766,12 +3766,13 @@ static int l2cap_debugfs_show(struct seq_file *f, void *p)
        sk_for_each(sk, node, &l2cap_sk_list.head) {
                struct l2cap_pinfo *pi = l2cap_pi(sk);
 
-               seq_printf(f, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d %d\n",
+               seq_printf(f, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d %d %d\n",
                                        batostr(&bt_sk(sk)->src),
                                        batostr(&bt_sk(sk)->dst),
                                        sk->sk_state, __le16_to_cpu(pi->psm),
                                        pi->scid, pi->dcid,
-                                       pi->imtu, pi->omtu, pi->sec_level);
+                                       pi->imtu, pi->omtu, pi->sec_level,
+                                       pi->mode);
        }
 
        read_unlock_bh(&l2cap_sk_list.lock);