[sheepdog] [PATCH v2] logger: clean printf styled log functions

Liu Yuan namei.unix at gmail.com
Thu Jan 24 03:25:52 CET 2013


On 01/24/2013 12:05 AM, Hitoshi Mitake wrote:
> Current sheep employes names "dprintf" and "vprintf" for its internal
> logging usage. Unfortunately glibc provides functions which have same
> names.
> 
> This patch clean these old functions and prepare new functions as
> alternatives. New functions are:
> 
> sd_printf(): A simple wrapper for log_write(). Caller has to pass log
> 	     level as its first parameter.
> sd_dprintf(): call log_write() with SDOG_DEBUG
> sd_eprintf(): call log_write() with SDOG_ERR
> sd_iprintf(): call log_write() with SDOG_INFO

Applied, thanks.

Yuan



More information about the sheepdog mailing list