[sheepdog] rename printf functions

Liu Yuan namei.unix at gmail.com
Wed Aug 7 20:09:11 CEST 2013


On Wed, Aug 07, 2013 at 09:26:38PM +0900, MORITA Kazutaka wrote:
> At Wed, 7 Aug 2013 17:04:29 +0800,
> Liu Yuan wrote:
> > 
> > On Wed, Aug 07, 2013 at 05:44:53PM +0900, MORITA Kazutaka wrote:
> > > Hi all,
> > > 
> > > 1. How about introducing the following functions?
> > > 
> > >    sd_emerg()  to log message with log level SDOG_EMERG
> > >    sd_alert()  to log message with log level SDOG_ALERT
> > >    sd_crit()   to log message with log level SDOG_CRIT
> > >    sd_err()    to log message with log level SDOG_ERR
> > >                (sd_eprintf will be removed)
> > 
> > sd_error() looks more consistent with others.
> 
> I've looked into linux kernel codes, but xxx_err looks more common to
> print message with a LOG_ERR level, doesn't it?
> E.g. pr_err(), xfs_err(), dev_err(), ...
> 

Okay

Thanks
Yuan



More information about the sheepdog mailing list