[sheepdog] [PATCH v2 0/5] clean up logger format string
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Feb 25 16:11:09 CET 2013
This series removes a newline from a logger format string to simplify
code and increse a chance of reducing the number of lines.
Changes from v1:
- split strerror(errno) stuff into another patch
- remove wrong replacement of strerror(errno)
MORITA Kazutaka (5):
logger: add a newline to the end of print format if it is missing
checkpatch: show warning if sd_printf format string contains a newline
remove newline from sd_printf format string
checkpatch: add check for strerror(errno)
sheep: use %m instead of strerror(errno)
include/sheep.h | 2 +-
include/util.h | 2 +-
lib/event.c | 18 ++++----
lib/logger.c | 18 +++++---
lib/net.c | 67 ++++++++++++++-------------
lib/util.c | 18 ++++----
script/checkpatch.pl | 11 +++++
sheep/cluster.h | 2 +-
sheep/cluster/corosync.c | 60 ++++++++++++------------
sheep/cluster/local.c | 36 +++++++--------
sheep/cluster/zookeeper.c | 84 +++++++++++++++++-----------------
sheep/config.c | 16 +++----
sheep/farm/farm.c | 32 ++++++-------
sheep/farm/sha1_file.c | 31 ++++++-------
sheep/farm/snap.c | 11 ++---
sheep/farm/trunk.c | 12 ++---
sheep/gateway.c | 22 ++++-----
sheep/group.c | 109 +++++++++++++++++++++-----------------------
sheep/journal.c | 30 ++++++------
sheep/journal_file.c | 36 +++++++--------
sheep/migrate.c | 32 ++++++-------
sheep/object_cache.c | 114 ++++++++++++++++++++++------------------------
sheep/object_list_cache.c | 6 +--
sheep/ops.c | 38 ++++++++--------
sheep/plain_store.c | 78 +++++++++++++++----------------
sheep/recovery.c | 64 +++++++++++++-------------
sheep/request.c | 76 ++++++++++++++-----------------
sheep/sheep.c | 37 ++++++++-------
sheep/sockfd_cache.c | 34 +++++++-------
sheep/store.c | 52 ++++++++++-----------
sheep/trace/trace.c | 26 +++++------
sheep/vdi.c | 62 ++++++++++++-------------
sheep/work.c | 14 +++---
33 files changed, 616 insertions(+), 634 deletions(-)
--
1.8.1.3.566.gaa39828
More information about the sheepdog
mailing list