diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-22 16:00:40 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-22 16:00:40 -0500 |
commit | 7386397636d49cd5f03da29432467d3e98cbad35 (patch) | |
tree | e306cfa2d55c7085d77678e9f6b95bcf2b6aad58 | |
parent | a8b3485287731978899ced11f24628c927890e78 (diff) |
[Bluetooth] Missing endian swapping for L2CAP socket list
The PSM value in the L2CAP socket list must be converted to host
order before printing it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | net/bluetooth/l2cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index 29a8fa4d3728..be5a6e60a3c4 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -2150,8 +2150,8 @@ static ssize_t l2cap_sysfs_show(struct class *dev, char *buf) | |||
2150 | 2150 | ||
2151 | str += sprintf(str, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d 0x%x\n", | 2151 | str += sprintf(str, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d 0x%x\n", |
2152 | batostr(&bt_sk(sk)->src), batostr(&bt_sk(sk)->dst), | 2152 | batostr(&bt_sk(sk)->src), batostr(&bt_sk(sk)->dst), |
2153 | sk->sk_state, pi->psm, pi->scid, pi->dcid, pi->imtu, | 2153 | sk->sk_state, btohs(pi->psm), pi->scid, pi->dcid, |
2154 | pi->omtu, pi->link_mode); | 2154 | pi->imtu, pi->omtu, pi->link_mode); |
2155 | } | 2155 | } |
2156 | 2156 | ||
2157 | read_unlock_bh(&l2cap_sk_list.lock); | 2157 | read_unlock_bh(&l2cap_sk_list.lock); |