[CRIU] [PATCH 0/5] log code update

Cyrill Gorcunov gorcunov at openvz.org
Sat Jan 12 08:06:12 EST 2013


The \n implicitly added to pr_perror message was bothering me
all the time. So to be solid in coding style lets introduce
pr_perr macro helper which will work just like pr_err, requiring
new line in format message. In time all pr_perr should be moved
to use pr_perr instead and finally pr_perror will be thrown out.

Cyrill Gorcunov (5):
  log: Beautify log.h
  log: Make pr_err_once to use pr_err
  log: Add generic __print_on_level helper
  log: Introduce print_on_level_perr helper
  log: Introduce pr_perr macro

 include/log.h | 52 ++++++++++++++++++++++++++++++++++------------------
 log.c         | 45 +++++++++++++++++++++++++++++++++++++++------
 2 files changed, 73 insertions(+), 24 deletions(-)

-- 
1.8.0.1


More information about the CRIU mailing list