From: Colin McCabe Subject: Re: [PATCH 0/6 v2] logging refactoring Date: Sun, 13 Dec 2009 23:23:47 -0800 Message-ID: <436f52800912132323paf46ea2j6392ce81e13a7981@mail.gmail.com> References: <1260317516-30991-1-git-send-email-cmccabe@alumni.cmu.edu> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=LDhuE4LABwg+td4+atWTl4S9dEeQWCWWLjOL+1JoHOU=; b=d026DFmUaz0h/Jl62qlTZcNvHJEgp6VWVyNS1QyCzw/CDIn1yYxm3I63CtltDZpzQ6 lZkeFzeTNValO1lyP4+NmPn3Dx95/BWjCo8hE9i84bsRJO2XSDzhz26xLp9c8HJIDkkZ dWozxKsJEgReegn3FBjZ/ky76zseBB+vLu86M= In-Reply-To: <1260317516-30991-1-git-send-email-cmccabe@alumni.cmu.edu> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Project Hail List Cc: Pete Zaitcev , Jeff Garzik , Colin McCabe Hi all, I think I'm going to respin this patch to be a lot smaller. Just refactor one or two things, but leave the existing "verbose" and "applog" system in place. Let me know what you think-- do you think I should push ahead with HAIL_DEBUG etc., cheers. Colin On Tue, Dec 8, 2009 at 4:11 PM, Colin McCabe wrote: > This patch series creates a common.h and populates it with some function > prototypes and logging stuff. > > version 2: > * Rename CLD_DEBUG, etc. to HAIL_DEBUG > * use angle brackets for including common.h from include/ > > Colin McCabe (6): > cld: Declare common.c functions in common.h > cld: create logging macros > cld: modify client code to use logging macros > cld: modify server code to use logging macros > cld: modify cld-dns to use logging macros > cld: Tweak some log levels in cldc dns > > include/cld_msg.h | 10 ----- > include/cldc.h | 12 +++---- > include/common.h | 38 ++++++++++++++++++++ > lib/cldc-dns.c | 82 +++++++++++++++++--------------------------- > lib/cldc.c | 98 +++++++++++++++++++++------------------------------- > server/cld.h | 4 +- > server/cldb.c | 6 ++-- > server/msg.c | 49 +++++++++++--------------- > server/server.c | 86 ++++++++++++++++++++-------------------------- > server/session.c | 57 ++++++++++++------------------- > server/util.c | 27 +++++++------- > tools/cldcli.c | 14 +++++--- > 12 files changed, 223 insertions(+), 260 deletions(-) > create mode 100644 include/common.h > >