Am 10.07.2012 22:53, schrieb Anthony Liguori:
> On 07/08/2012 06:51 AM, blauwirbel@gmail.com wrote:>> From: Blue Swirl<blauwirbel@gmail.com>>>>> Replace %m format with explicit call to standard strerror().>>>> Signed-off-by: Blue Swirl<blauwirbel@gmail.com>>> I would expect '%m' to be thread safe whereas strerror() isn't. I > don't think this change is actually good.>> You'd need to do something more clever with strerror_r() to be > equivalent.>> Regards,>> Anthony Liguori>
Extract from the Linux manpage PRINTF(3):
m (Glibc extension.) Print output of strerror(errno). No
argument is required.
The patch should result in identical behaviour with Glibc.
It improves the situation for all platforms which don't use Glibc.
In theory, strerror_r() might be more correct, but in the typical practical
scenarios (error output before abort) it is not really needed.
Regards,
Stefan Weil