batostr() function
Subsystems (3)
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
johannes
A message that is not in the archive (sent off-list or not yet received): 1336391383.4325.24.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
Quoted 1 line
johannes
Regards
David
A message that is not in the archive (sent off-list or not yet received): CANq1E4QW4vSn_r9C=rirShE+-eyPjRX+b5tpC+mx69Hs6aEYqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Hi David,
Quoted 5 lines · David Herrmann
Hi Johannes
On Mon, May 7, 2012 at 1:49 PM, Johannes Berg <[email protected]> wrote:
Quoted 7 lines
Quoted 3 lines
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
Thanks for fixing it. I'm sure we haven't noticed but it's still weird to have it this way. :-/
Regards,
--
Ulisses Furquim
ProFUSION embedded systems
http://profusion.mobi
Mobile: +55 19 9250 0942
Skype: ulissesffs
Quoted 10 lines · David Herrmann
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
I was thinking you could use %pM, but it seems BT addresses are stored the wrong way around for some reason ...
johannes
Quoted 8 lines · Johannes Berg
Quoted 7 lines · David Herrmann
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Quoted 6 lines
Quoted 3 lines
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
I was thinking you could use %pM, but it seems BT addresses are stored the wrong way around for some reason ...
This looks like better idea then allocating buffers, we can use swap to take care about "wrong order".
Best regards
Andrei Emeltchenko
Quoted 13 lines · Andrei Emeltchenko
Quoted 12 lines · Johannes Berg
Quoted 10 lines · David Herrmann
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
Quoted 5 lines
Quoted 2 lines
I was thinking you could use %pM, but it seems BT addresses are stored the wrong way around for some reason ...
This looks like better idea then allocating buffers, we can use swap to take care about "wrong order".
Quoted 14 lines · Joe Perches
Quoted 13 lines · Andrei Emeltchenko
Quoted 12 lines · Johannes Berg
Quoted 10 lines · David Herrmann
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
I was thinking you could use %pM, but it seems BT addresses are stored the wrong way around for some reason ...
This looks like better idea then allocating buffers, we can use swap to take care about "wrong order".
Pretty much what I had in mind, thanks. Luis, you'll notice that this will be a pain to backport in compat. :-)
johannes
A message that is not in the archive (sent off-list or not yet received): 1336499313.4320.4.camel-8upI4CBIZJIJvtFkdXX2HixXY32XiHfO@public.gmane.org
Quoted 18 lines · Johannes Berg
Quoted 17 lines · Joe Perches
Quoted 16 lines · Andrei Emeltchenko
Quoted 14 lines · Johannes Berg
Quoted 10 lines · David Herrmann
Hi Johannes
Quoted 3 lines · Johannes Berg
Really? 2 static buffers that are used alternately based on a static variable? How can that possibly be thread-safe? That may work in very restricted scenarios, but ...
Looking at "git blame" it seems the whole function is still from linux-2.4. Looks like no-one ever noticed. I've sent a patchset fixing it, thanks.
I was thinking you could use %pM, but it seems BT addresses are stored the wrong way around for some reason ...
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
This looks like better idea then allocating buffers, we can use swap to take care about "wrong order".
Pretty much what I had in mind, thanks. Luis, you'll notice that this will be a pain to backport in compat. :-)
Mumble grumble. Oh well! :) I'm starting to enjoy the curve balls.
Luis