Return-Path: MIME-Version: 1.0 In-Reply-To: <20120328142601.GB31354@aemeltch-MOBL1> References: <1332892776-12060-1-git-send-email-andre.guedes@openbossa.org> <1332892776-12060-4-git-send-email-andre.guedes@openbossa.org> <20120328085638.GC21905@aemeltch-MOBL1> <20120328142601.GB31354@aemeltch-MOBL1> Date: Wed, 28 Mar 2012 14:15:12 -0300 Message-ID: Subject: Re: [RFC 3/3] Bluetooth: Use address type info from User-space From: Andre Guedes To: Andrei Emeltchenko , Andre Guedes , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Andrei, On Wed, Mar 28, 2012 at 11:26 AM, Andrei Emeltchenko wrote: > Hi Andre, > > On Wed, Mar 28, 2012 at 11:05:47AM -0300, Andre Guedes wrote: >> >> -int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, bdaddr_t *dst) >> >> +int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, >> >> + ? ? ? ? ? ? ? ? ? ? bdaddr_t *dst, u8 dst_type) >> >> ?{ >> >> ? ? ? struct sock *sk = chan->sk; >> >> ? ? ? bdaddr_t *src = &bt_sk(sk)->src; >> >> @@ -1141,8 +1142,8 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, bdaddr_t *d >> >> ? ? ? __u8 auth_type; >> >> ? ? ? int err; >> >> >> >> - ? ? BT_DBG("%s -> %s psm 0x%2.2x", batostr(src), batostr(dst), >> >> - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? __le16_to_cpu(chan->psm)); >> >> + ? ? BT_DBG("%s -> %s (type %u) psm 0x%2.2x", batostr(src), batostr(dst), >> >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dst_type, __le16_to_cpu(chan->psm)); >> > >> > If you change style for other functions you might change it here as well. >> >> Sorry, didn't follow you here. > > In l2cap_chan_connect you seems align second line at "(". Maybe we need > then align the same for debug statement? I see now, I guess we are supposed to align debug too. I'll fix this. Thanks, Andre