From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 29 Sep 2008 15:08:23 +0000 Subject: Re: [PATCH] replace strerror() usage with threadsafe "%m" format Message-Id: <1222700903.2334.0.camel@lgn.site> List-Id: References: <48E0EDCC.5050609@tuffmail.co.uk> In-Reply-To: <48E0EDCC.5050609@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2008-09-29 at 16:01 +0100, Alan Jenkins wrote: > strerror() is not threadsafe. It uses a buffer to build messages of the form > "Unknown error 387689". > > syslog() provides a %m format which is equivalent to strerror(errno). > As a GNU extension, this is also accepted by printf and friends. > At least in the current implementation, it is correctly threadsafe. Great! Applied. Thanks, Kay