aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-02-17 04:40:55 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-17 06:01:10 -0500
commit20d1803a70ddafc8410b461caaa397e49da246ac (patch)
treed2347c25bb35832d6c931bdb1711c16f3f57d441 /net/bluetooth/l2cap_core.c
parent3ed7003e724a04482e0ef1e794eece8c1c177b37 (diff)
Bluetooth: Move scope of state_to_string
Function state_to_string will be used in other files in debug statements. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 8efac7884ffb..252a96e474ca 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -215,32 +215,6 @@ static u16 l2cap_alloc_cid(struct l2cap_conn *conn)
215 return 0; 215 return 0;
216} 216}
217 217
218static char *state_to_string(int state)
219{
220 switch(state) {
221 case BT_CONNECTED:
222 return "BT_CONNECTED";
223 case BT_OPEN:
224 return "BT_OPEN";
225 case BT_BOUND:
226 return "BT_BOUND";
227 case BT_LISTEN:
228 return "BT_LISTEN";
229 case BT_CONNECT:
230 return "BT_CONNECT";
231 case BT_CONNECT2:
232 return "BT_CONNECT2";
233 case BT_CONFIG:
234 return "BT_CONFIG";
235 case BT_DISCONN:
236 return "BT_DISCONN";
237 case BT_CLOSED:
238 return "BT_CLOSED";
239 }
240
241 return "invalid state";
242}
243
244static void l2cap_state_change(struct l2cap_chan *chan, int state) 218static void l2cap_state_change(struct l2cap_chan *chan, int state)
245{ 219{
246 BT_DBG("%p %s -> %s", chan, state_to_string(chan->state), 220 BT_DBG("%p %s -> %s", chan, state_to_string(chan->state),