From: Colin McCabe Subject: Re: [PATCH 4/6] cld: modify server code to use logging macros Date: Tue, 8 Dec 2009 11:08:03 -0800 Message-ID: <436f52800912081108x5c07ef65q262abd9758b9119a@mail.gmail.com> References: <1260232984-26726-1-git-send-email-cmccabe@alumni.cmu.edu> <1260232984-26726-2-git-send-email-cmccabe@alumni.cmu.edu> <1260232984-26726-3-git-send-email-cmccabe@alumni.cmu.edu> <1260232984-26726-4-git-send-email-cmccabe@alumni.cmu.edu> <1260232984-26726-5-git-send-email-cmccabe@alumni.cmu.edu> <20091208111339.5c12115d@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE 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:content-transfer-encoding; bh=phcdfkiiMe/BP174dJxdLjWP7KxPJ2aK2RsN31IotRg=; b=tMYwOSKSGpcX1Soh16wfE0fAQpUUr26qhrxhRBA/WN0zi9uJInj+6fLIHu7+iNK9Md LVK3iNYvh5spP7ReKoLVg97SpIVNG8fJO2XjHaHobTM2sdcxeZ35nTWw+ZC1Aa2X/14n drWG5D/9fA3B1QJ4dTkQ2x403n5LRpNX5N/HQ= In-Reply-To: <20091208111339.5c12115d@redhat.com> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Pete Zaitcev Cc: Project Hail List , Jeff Garzik On Tue, Dec 8, 2009 at 10:13 AM, Pete Zaitcev wrot= e: > On Mon, =A07 Dec 2009 16:43:02 -0800 > Colin McCabe wrote: > >> +++ b/server/cld.h >> @@ -26,6 +26,7 @@ >> =A0#include >> =A0#include "cldb.h" >> =A0#include >> +#include "common.h" >> =A0#include > > This should be since it's common (in include). Sure > >> -extern int debugging; >> +extern struct cld_log srv_log; > >> - =A0 =A0 applog(LOG_INFO, "databases down"); >> + =A0 =A0 CLD_INFO(&srv_log, "databases down"); > > Great, you took code that was common across Hail and made it specific > to CLD again. I guess I could name the log messages HAIL_INFO, etc. I don't know if that would be an improvement or not. Colin > > -- Pete > -- > To unsubscribe from this list: send the line "unsubscribe hail-devel"= in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html >