[sheepdog] [PATCH] logger: clean printf styled log functions
Hitoshi Mitake
h.mitake at gmail.com
Wed Jan 23 12:43:14 CET 2013
At Wed, 23 Jan 2013 17:25:37 +0800,
Liu Yuan wrote:
>
> On 01/23/2013 04:34 PM, 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
>
> I can't git am this patch, please rebase the patch to the latest master.
I checked but I couldn't find the problem. Is your latest master
ef41ada575e50 (util: rename set_trimmed_sectors as
untrim_zero_sectors)?
Thanks,
Hitoshi
More information about the sheepdog
mailing list