Re: [Libusbx-devel] RFC: Make usbi_log_v() print atomically to stderr

2013-06-16 Thread Hans de Goede
Hi, On 06/15/2013 12:03 AM, Chris Dickens wrote: > Hi, > > I have an application that prints to stderr when debugging is enabled. It is > multithreaded, so stderr gets a lot of concurrent activity. I have noticed > that libusbx output is often broken up, and looking at the usbi_log_v() > functi

[Libusbx-devel] RFC: Make usbi_log_v() print atomically to stderr

2013-06-14 Thread Chris Dickens
Hi, I have an application that prints to stderr when debugging is enabled. It is multithreaded, so stderr gets a lot of concurrent activity. I have noticed that libusbx output is often broken up, and looking at the usbi_log_v() function reveals multiple separate calls to the printf functions. AFA