[sheepdog] [PATCH 3/3] remove newline from sd_printf format string

Liu Yuan namei.unix at gmail.com
Mon Feb 25 09:41:55 CET 2013


On 02/25/2013 04:31 PM, MORITA Kazutaka wrote:
>  		ret = pthread_create(&wi->worker_thread, NULL, worker_routine,
>  				     wi);
>  		if (ret) {
> -			sd_eprintf("failed to create worker thread: %s\n",
> -				strerror(ret));
> +			sd_eprintf("failed to create worker thread: %m");

For pthread_create, it returns error number directly and IIRC, errno
isn't set. So %m always 'Success'.

Thanks,
Yuan



More information about the sheepdog mailing list