Return-Path: Message-ID: <1336488880.5970.149.camel@aeonflux> Subject: Re: [PATCH 3/3] Bluetooth: Remove batostr() From: Marcel Holtmann To: Ulisses Furquim Cc: David Herrmann , linux-bluetooth@vger.kernel.org, gustavo@padovan.org Date: Tue, 08 May 2012 07:54:40 -0700 In-Reply-To: References: <1336483706-1533-1-git-send-email-dh.herrmann@googlemail.com> <1336483706-1533-3-git-send-email-dh.herrmann@googlemail.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Ulisses, > > batostr() is not used anywhere and I don't see any reason why we should > > keep it. Use ba2str() instead. > > > > Signed-off-by: David Herrmann > > --- > > include/net/bluetooth/bluetooth.h | 1 - > > net/bluetooth/lib.c | 14 -------------- > > 2 files changed, 15 deletions(-) > > The patchset looks good to me. I'm also not sure we need another > specifier for snprintf(). > > Given we had static buffers instead of allocating them in the stack > every time it'd be good to hear from Marcel if we had a reason and if > it's still valid. IMO we don't have problems with stack usage in our > code paths now but I haven't actually checked it. that code is most likely 11+ years old. It is actually not from me. So if you wanna know why, you need to track down Max. Using %pM and baswap seems to be the best approach for fixing this right now. However I am not against introducing a snprintf modifier for Bluetooth addresses. Regards Marcel